A fairly full featured file manager all in one file
Switch branches/tags
Nothing to show
Clone or download
Latest commit 312ca44 Oct 1, 2018
Permalink
Failed to load latest commit information.
README.md Update README.md Oct 1, 2018
fileManager.php Inital commit. Oct 1, 2018

README.md

Single-File-PHP-file-manager

The inspiration for this project was my inability to use an FTP client remotely when working on CS projects that required I save my work to a campus-hosted server. I built a really terrible solution at the time which did some really janky things and was mostly contained in one enormous echo block, but I recently revisited it and rewrote it from the ground up.

The biggest challenge was keeping everything in one file while maintaining a decent feature set and preserving readability. The latter was the real challenge. By and large things are well commented, though, I did have to use section comments which I'm not crazy about. There's some cases where things are shoved into one line, but only when it's self explanatory when the formatting doesn't look terrible.

Features

  • View file list (with FontAwesome icons!)
  • Filter results in file list
  • Copy/delete/rename/preview/change permissions
  • Drag and drop file movement between directories
  • Create new files/folder
  • file uploading
  • AJAX (not more broken refresh/back buttons
  • Simple login/'security'
  • It's all in one PHP file!

Known bugs

  • Dragging and dropping onto action buttons produces an error
  • Top directory dragging/dropping doesn't work

Coming soon

  • Better error handling
  • Clean everything

Credits

This project makes use of Bootstrap, jQuery and FontAwesome, as well as a few functions which were created by users on PHP.net and Stack Overflow--These are credited in the source.

Note:

This has not been extensively tested! I am not liable for lost data! Use at your own risk!