IIS7 + PHP 上傳大檔問題
IIS7 內定上傳限制為30MB,如果超過30MB,IIS會回傳404錯誤!修正方法:
於web.config中加入以下內容中的 <requestFiltering> 段<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- enables files up to 64MB -->
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="65536000" /> <!-- really? this is in bytes, not kb -->
</requestFiltering>
</security>
</system.webServer>
</configuration>PHP
修正方法:
修改php.ini,設定以下四個值upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
max_input_time = 300以上修改內容,以修改為上傳64MB為例!
Reference: http://refactored.tumblr.com/pos ... dpress-iis7-uploads
頁:
[1]