File Upload Setup
Article Topics: Setup
PHP limits the size of files that can be uploaded. PHP sends an error if you try uploading a file larger than this size. Edit the php.ini configuration file to change these settings; look for the following lines:
upload_max_filesize = 5M
post_max_size = 8MExample: If you are uploading 10M files, both of these values should be > 10M
Additional settings that may also cause issues with file uploads:
file_uploads = On
max_execution_time = 300
max_input_time = 300
memory_limit = file_uploadsmust be enabled.max_execution_time# of secondsmax_input_time# of secondsmemory_limitmust be AT LEAST as large as yourpost_max_sizeandupload_max_filesizesettings.Please Note:
memory_limitaffects all of php, and may need to be set higher than the others for other reasons.
Last updated
Was this helpful?