简体   繁体   中英

PHP file uploads are limited in size despite php.ini edits

I have been trying for weeks to get a file upload system working in php. The code is fine and perfectly functional, but the uploads appear to be size-limited. They will crash out with chrome saying the connection was reset if any file is uploaded that is around 32mb in size. This isn't a code error as, when tested on another server, the limit is different. I have tried editing php.ini's max_upload_filesize , memory_limit , post_max_size , max_execution_time , everything but to no avail (the changes are taking place, as phpinfo() reports). The server is IIS 8 if this helps. I have also changed the cgi timeout on IIS. How can I increase the upload size!?

搜索post_max_size并设置128M

IIS allows upto 30 MB, so its failing to upload. Please set post_max_size to more. If still that is not working, in your IIS Manager goto "Request Filtering" and update Rule - Max allowed content length to the size you need.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM