Skip to content

'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

@catharsis71

Description

@catharsis71

I did the following to try to get this working:

  1. Created a directory /upload/ on my web server.

  2. Copied upload.php (renamed to index.php) into my /upload/ directory

  3. Copied class.uploader.php into my /upload/ directory

  4. Edited index.php (renamed from upload.php) so that instead of referencing '../src/class.uploader.php' it referenced './class.uploader.php'

  5. 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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions