├── LICENSE
├── README.md
├── changelog.html
├── del.php
├── download.php
├── index.php
├── src
├── css
│ ├── index.css
│ ├── index.php
│ ├── main.css
│ ├── responsive.css
│ ├── stat.css
│ └── type.css
├── img
│ ├── aud.png
│ ├── audios.jpg
│ ├── del.png
│ ├── delete.png
│ ├── home.png
│ ├── images.jpg
│ ├── index.php
│ ├── oth.png
│ ├── others.png
│ ├── stat.png
│ ├── update.gif
│ ├── upload.ico
│ ├── vid.png
│ └── videos.png
├── index.php
├── script
│ ├── index.php
│ └── script.js
└── set
│ ├── disableDel.dat
│ ├── disableDel.php
│ ├── enableDel.php
│ ├── index.php
│ ├── memCap.dat
│ └── setCap.php
├── stat.php
├── type.php
├── uploadMul.php
└── uploads
├── aud
├── .notempty
└── index.php
├── img
├── .notempty
└── index.php
├── index.php
├── oth
├── .notempty
└── index.php
└── vid
├── .notempty
└── index.php
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Ronald P Mathews
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # FileServer
2 | Once this code is hosted on a local server, users can access the index page inorder to upload files like photos, videos, music
3 | and other types of files into the server. This code could be useful for creating a NAS device using an old computer with enough
4 | storage.
5 |
6 | How to:
7 | 1) On a windows system, download and install XAMPP/WAMPP or on a Linux system install LAMPP and then copy these files into the
8 | HTDOCS folder. Also make sure that max upload file size have been set to a high enough value in your PHP config file inorder to
9 | allow uploading of large files.
10 | 2) Connect to the home network and set a static IP for you computer.
11 | 3) Once the above is done, ensure you have set in-bound and out-bound rules to enable.
12 | 4) Now if you type in the IP address of the now created server on the web browser on any of the devices connected to the LAN,
13 | you will be able to see the web interface and will be able to upload and manage files on the server.
14 |
15 | **On Linux based distributions, you might have to manually enable write permissions on the uploads folder for this application to work.**
16 |
--------------------------------------------------------------------------------
/changelog.html:
--------------------------------------------------------------------------------
1 |
2 |