Troubleshoot File Upload Issues
Problem
Uploaded files are either rejected by the system or do not persist after submitting a form.
Cause
Your php.ini is misconfigured, or php does not have read / write permissions to the temporary uploads directory.
Resolution
Login to operator and browse to Utilities > PHP Information, then check the below settings:
- Ensure
file_uploads
is set to 1 - Ensure
upload_max_filesize
is larger than the file you're trying to upload - Ensure
post_max_size
is larger than or equal toupload_max_filesize
(above) - Ensure
memory_limit
is larger thanupload_max_filesize
, it should be several times larger - Ensure
upload_tmp_dir
is read writable by the PHP / web server process. If the setting value is empty, it defaults to the system default which is usually/tmp
on Linux andC:\Windows\Temp
on Windows.
If you're using Windows and IIS, please ensure each of the below users have full permission to theupload_tmp_dir
directory:IUSR
IIS_IUSRS(<servername>\IIS_IUSRS)
- If
upload_tmp_dir
is null, theopen_basedir
setting must include the system default directory