php-funnel
Simple PHP script that lets you upload multiple files with a single HTTP POST
request (multipart formpost).
Warning: be careful about the location of your
uploads_dir
; it shouldn't be accessible from the outside. If you are running PHP on an Apache web server, you can leverage thehta_protection
feature of this script (which uses an.htaccess
file), but putting uploaded files into the document root is still strongly discouraged.
Usage
Important: this has been tested with PHP 8.2.10.
Before uploading the script to your web server document directory, you may want to customize the configuration section. In particular, you should definitely change the authentication credentials and use a strong password.
If you want the script to send an e-mail automatically when an upload is successful, set the mail_to
config option to the recipient's address:
PHP | |
---|---|
Then you can use the script in the following manner:
Bash | |
---|---|
Or, in alternative, you can upload files manually from the built-in Web UI. To do that, just visit the script page with a web browser.
Known issues
As stated here, if you are running PHP under CGI/FastCGI Apache, you should add this line to your .htaccess
file to make authentication work: