# 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:

1. Ensure `file_uploads` is set to 1
2. Ensure `upload_max_filesize` is larger than the file you're trying to upload
3. Ensure `post_max_size` is larger than or equal to `upload_max_filesize` (above)
4. Ensure `memory_limit` is larger than `upload_max_filesize`, it should be several times larger
5. 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 and `C:\Windows\Temp` on Windows.  
      
    If you're using Windows and IIS, please ensure each of the below users have full permission to the `upload_tmp_dir` directory: 
    1. `IUSR`
    2. `IIS_IUSRS(<servername>\IIS_IUSRS)`
6. If `upload_tmp_dir` is null, the `open_basedir` setting must include the system default directory