简体   繁体   中英

PHP file uploads: The page was not displayed because the request entity is too large

When i try to upload any file (via form submit), i get the following error: "The page was not displayed because the request entity is too large". I even get this error when uploading a 50kb jpg file

Ive tested my php web application on 8 servers and it works on all but one. Leading me to suspect that it isnt a code issue but an IIS setting. Can anyone point me in the right direction?

Thanks

This might answer your question:

http://blogs.msdn.com/b/jiruss/archive/2007/04/13/http-413-request-entity-too-large-can-t-upload-large-files-using-iis6.aspx

Basically the fix is simply to up the size of the UploadReadAheadSize metabase property like this:

cscript adsutil.vbs set w3svc/1/uploadreadaheadsize 204800

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