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_uploadsis set to 1 - Ensure
upload_max_filesizeis larger than the file you're trying to upload - Ensure
post_max_sizeis larger than or equal toupload_max_filesize(above) - Ensure
memory_limitis larger thanupload_max_filesize, it should be several times larger - Ensure
upload_tmp_diris read writable by the PHP / web server process. If the setting value is empty, it defaults to the system default which is usually/tmpon Linux andC:\Windows\Tempon Windows.
If you're using Windows and IIS, please ensure each of the below users have full permission to theupload_tmp_dirdirectory:IUSRIIS_IUSRS(<servername>\IIS_IUSRS)
- If
upload_tmp_diris null, theopen_basedirsetting must include the system default directory