Files
simple-file-manager/README.md

36 lines
1.4 KiB
Markdown
Raw Normal View History

2013-10-18 19:39:27 -07:00
simple-file-manager
===================
A Simple PHP file manager. The code is a single php file.
2013-10-18 22:53:53 -04:00
2017-02-22 13:53:34 -05:00
Just copy `index.php` to a folder on your webserver.
2013-10-18 22:53:53 -04:00
2013-10-18 23:02:16 -04:00
## Why it is good
2013-10-18 22:53:53 -04:00
- Single file, there are no images, or css folders.
- Ajax based so it is fast, but doesn't break the back button
2017-02-22 13:53:34 -05:00
- Allows drag and drop file uploads if the folder is writable by the webserver (`chmod 777 your/folder`)
2013-10-19 00:09:34 -04:00
- Suits my aesthetics. More like Dropbox, and less like Windows Explorer
2013-10-18 22:53:53 -04:00
- Works with Unicode file names
- The interface is usable from an iPad
- XSRF protection, and an optional password.
## Do not allow uploads on the public web
If you allow uploads on the public web, it is only a matter of time before your server is hosting and serving very illegal content. Any of the following options will prevent this:
- Don't make the folder writable by the webserver `chmod 775`
- Set `$allow_upload = false`
- Use a password `$PASSWORD = 'some password'`
- Use a `.htaccess` file with Apache, or `auth_basic` for nginx
- Only use this on a private network
2017-02-22 14:02:31 -05:00
HT: [@beardog108](https://github.com/beardog108)
2013-10-18 23:02:16 -04:00
2018-06-02 10:48:12 +02:00
## Forks
2018-06-02 14:34:37 +02:00
- **Edit feature**. An extension of the initial project which lets you edit files and save them from the main php file. Works asynchronously with ajax requests. Link: [@diego95root](https://github.com/diego95root/File-manager-php)
2018-06-02 10:48:12 +02:00
2013-10-18 23:02:16 -04:00
## Screenshot
2018-06-02 10:48:12 +02:00
![Screenshot](https://raw.github.com/jcampbell1/simple-file-manager/master/screenshot.png "Screenshot")