WebUploader上傳大文件時,上傳出錯問題

 上傳普通文件沒有問題,當文件達到必定大小的時候,上傳錯誤,返回結果是404,我能夠確定的是路徑是沒有問題的。由於上傳小文件等都是能夠的。nginx

而後使用webuploader的uploaderror監控錯誤,返回的錯誤代碼爲http。一直不得解決之法。web

後來思考只有大文件出錯,小文件沒有問題,那多是post的時候超出了文件大小限制。post

果不其然,修改了配置文件大小後,使用正常。spa

IIS6修改方法:代理

<httpRuntime targetFramework="4.5" maxRequestLength="1048576000" executionTimeout="13600" />

 

IIS7修改方法:code

 <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="1048576000"></requestLimits>
      </requestFiltering>
    </security>
  </system.webServer>

記錄一下。blog

後續繼續出現問題,不過是413 request entity too large,get

在跟蹤發現是使用了nginx作反向代理的問題,修改nginx配置文件便可。it

相關文章
相關標籤/搜索