Cannot upload big files: "Undefined index: image_file"

Created:

2016-11-16 13:23:11 UTC

Modified:

2017-04-26 15:41:48 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Cannot upload big files: "Undefined index: image_file"

Applicable to:

  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows

Symptoms

I cannot upload big files to my site using a custom .html script (http://%domain.tld%/upload.html). The following error appears:

Notice: Undefined index: image_file in %plesk_vhosts%\\%domain.tld%\\httpdocs\\upload.php on line 15
Notice: Undefined index: image_file in %plesk_vhosts%\\%domain.tld%\\httpdocs\\upload.php on line 16

Where %plesk_vhosts% is path to directory with virtual hosts (e.g., C:\Inetpub\vhosts).

Cause

Exceeded PHP limits.

Resolution

Increase PHP settings in the system php.ini file:

upload_max_filesize 100M
post_max_size 100M
max_input_time 120
max_execution_time 120
Have more questions? Submit a request
Please sign in to leave a comment.