A lightweight, single-file PHP File Manager, modernized and hardened for PHP 8.x environments.
Originally created by John Campbell, this version has been patched and updated to fix deprecated features, improve security, and ensure compatibility with modern servers (PHP-FPM, nginx, aaPanel, etc.).
- π Single PHP file β no external assets, no build steps
- β‘ AJAX-based interface β fast, responsive, back-button friendly
- π±οΈ Drag & Drop uploads (when directory is writable)
- π Unicode / UTF-8 filenames support
- π± Usable on tablets (iPad compatible UI)
- π‘οΈ XSRF protection
- π Optional password protection
- π Recursive delete with permission checks
- β¬οΈ Secure file download handling
- π¨ Minimal, clean UI (Dropbox-style, not Explorer-style)
This fork includes important improvements over the original project:
- β Full PHP 8.0 / 8.1 / 8.2 compatibility
- β Fixed deprecated functions and warnings
- β Hardened path traversal protection
- β Improved XSRF validation
- β Safer file upload handling
- β
Fixed
mime_content_type()fallback - β Fixed recursive delete permission checks
- β
Removed debug output (
var_dump) - β Proper HTTP headers and JSON responses
- β
Removed deprecated jQuery
.live() - β Compatible with newer jQuery versions
- β Fixed invalid HTML markup
- β Improved event handling
- Copy
index.phpinto a directory on your web server - Make sure PHP is enabled (PHP 8.x recommended)
- Open the file in your browser
cp index.php /var/www/html/files/