简体   繁体   中英

“Large” file uploads randomly failing when using HTTPS

We have a website which needs to allow users to upload files of sizes varying from a few KB to maybe 40MB at most. It's got a single-page front-end powered by Backbone.js (using the jQuery form plugin to upload files), and an API built with ASP.NET MVC, and it's hosted on IIS7. It is also served only over HTTPS.

In Chrome, files over about 4MB tend to fail to upload- often with no response from the server (when examining network responses). In Firefox, the same files often upload just fine, but occasionally give a 413 error (I uploaded the same file about five times in a row, on the last time I got a 413 error).

When we disable HTTPS, everything seems to work fine... but we need HTTPS on.

The web.config file includes maxAllowedContentLength and maxRequestLength values set to high-enough values.

Are there any more things we need to tweak or enable to get this to work more reliably over HTTPS?

也尝试查看httpRuntime配置的executionTimeout

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