We are facing an issue in file uploading on windows server running php. Bigger files are not uploading to the server. The site is hosted in a windows 2008 server and the webserver is IIS 7.
Sometimes it is possible to upload 22MB files, but sometimes the upload fails for 10 MB file. There is no error messages in the log files.
We have set very higher values in PHP.ini files.
max_execution_time 1800
max_input_time 1800
memory_limit = 5000M
upload_max_filesize = 60M
max_file_uploads = 40
post_max_size = 400
We also tried to increase the IIS upload limit by adding the values in web.conf file. It's also not solved the issue.
maxRequestLength="204800"
requestLengthDiskThreshold="204800"
executionTimeout="3600"
maxAllowedContentLength="204800000"
http://support.myeasyprojects.net/KB/a53/uploading-large-files-times-out.aspx
We are in the middle of a very confusing issue. Can anyone help us out on this?
post_max_size
should match upload_max_filesize
because files are sent with POST.
Memory limit is very high, do you really need all that memory? 256M should be enough.
My suggested configuration:
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
Need to do the following setting into the php.ini files. which is located into your c:\\php post_max_size (it should be greater than the upload_max_filesize);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.