PHP File Uploader is an easy to use, hi-performance File Upload Script which allows you to upload files to webserver
MIT License
94
stars
51
forks
source link
'PHP message: PHP Notice: Undefined index: files in /var/www/ipv4/upload/index.php on line 5PHP message: PHP Notice: Trying to access array offset on value of type bool in /var/www/ipv4/upload/index.php on line 23PHP message: PHP Notice: Trying to access array offset on value of type bool in /var/www/ipv4/upload/index.php on line 28' #25
Copied upload.php (renamed to index.php) into my /upload/ directory
Copied class.uploader.php into my /upload/ directory
Edited index.php (renamed from upload.php) so that instead of referencing '../src/class.uploader.php' it referenced './class.uploader.php'
Created a "/upload/uploads" subdirectory for uploads to go into and set www-data as the owner
However when I browse to /upload/ I just get a blank / 0-byte response, and the following error appears in my Apache log:
[Sun Jun 13 11:40:31.416720 2021] [proxy_fcgi:error] [pid 594484:tid 139774164084480] [client X.X.X.X:61610] AH01071: Got error 'PHP message: PHP Notice: Undefined index: files in /var/www/ipv4/upload/index.php on line 5PHP message: PHP Notice: Trying to access array offset on value of type bool in /var/www/ipv4/upload/index.php on line 23PHP message: PHP Notice: Trying to access array offset on value of type bool in /var/www/ipv4/upload/index.php on line 28'
I did the following to try to get this working:
Created a directory /upload/ on my web server.
Copied upload.php (renamed to index.php) into my /upload/ directory
Copied class.uploader.php into my /upload/ directory
Edited index.php (renamed from upload.php) so that instead of referencing '../src/class.uploader.php' it referenced './class.uploader.php'
Created a "/upload/uploads" subdirectory for uploads to go into and set www-data as the owner
However when I browse to /upload/ I just get a blank / 0-byte response, and the following error appears in my Apache log: