IIS 7.5 500 大文件上传错误
当尝试上传大文件(> 9-10Mb)时,我在使用 php 上传脚本时遇到了一些问题。我遇到的问题可以在此处的屏幕截图中看到:
http://thecreativefloor.com/capture.jpg
我已经更改了所有常用区域(php ini 设置、web.config 设置,尽管我已将它们发布在下面以供参考),但这一个现在让我难住了(如果它是这些区域之一,我猜它不会无论如何都不会显示 500 错误)。
我认为这一定是由于 IIS 中的某些问题,或者可能是脚本超时。该脚本适用于低于 9Mb 的任何其他内容,只要我超过它就会崩溃。
非常感谢
尼克的 任何帮助
PHP ini设置:
memory_limit = 256M
post_max_size = 800M
upload_max_filesize = 800M
Web.config添加:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000"/>
</requestFiltering>
</security>
I'm having some trouble with a php upload script when trying to upload large files ( > 9-10Mb). The problem I'm running into can be seen on the screenshot here:
http://thecreativefloor.com/capture.jpg
I've changed all the usual areas (php ini settings, web.config settings, although I've posted them below for reference) but this one now has me stumped (and if it was one of those areas I am guessing it wouldn't be showing a 500 error anyway).
I think it has to be due to some problem in IIS, or maybe a script timeout. The script works for anything else below 9Mb, just once I go above that it crashes.
Any help much appreciated
Nick
PHP ini settings:
memory_limit = 256M
post_max_size = 800M
upload_max_filesize = 800M
Web.config addition:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000"/>
</requestFiltering>
</security>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想查看此 web.config 设置,尽管它可能仅适用于 ASP.NET:
http://msdn.microsoft.com/en-us/library/e1f13641%28v=vs.71%29.aspx
You might wanna look into this web.config setting, although it might only be applicable for ASP.NET:
http://msdn.microsoft.com/en-us/library/e1f13641%28v=vs.71%29.aspx