【问题标题】:Multiple file upload over https hangs with blueimp jquery file upload通过 https 上传多个文件时 blueimp jquery 文件上传挂起
【发布时间】:2020-04-25 00:09:08
【问题描述】:

我已经从https://github.com/blueimp/jQuery-File-Upload 下载了主文件并在 IIS 8.5 和 IIS 10.0 上运行演示。 http上一切正常。如果我尝试在 https 上上传多个文件,则上传进度(整体进度条和每个文件的进度条)会在一段时间后挂起(总上传量约为 2MB 之后)。上传进度持续很长时间。上传 5 个文件(总计约 4 MB)需要 7 分钟。

ma​​xAllowedContentLengthma​​xRequestLength 值设置为 ma​​x

正如我所说,通过 http 看起来一切正常。问题出现在 https 上。我应该做什么样的 IIS 设置来修复它?

【问题讨论】:

  • 我发现了问题所在。这是关于 HTTP/2 协议的。我不得不禁用它。然后工作正常。你可以试试chrome --disable-http2

标签: jquery-file-upload multiple-file-upload


【解决方案1】:

我希望这能解决您的问题 只需参考网址 http://ajaxuploader.com/large-file-upload-iis-asp-net.htm

【讨论】:

  • 这与大文件无关。我已经在 web.config 中设置了文件大小限制。我可以毫无问题地上传单个 2 GB 文件。当我尝试在 https 上上传超过 2 MB 的超过 1 个文件时会出现问题。
【解决方案2】:

我浪费了很多时间试图弄清楚如何在不设置谷歌浏览器的情况下修复这个错误。

我使用这种方法。只需添加

sequentialUploads : true

在这样的文件上传设置部分

$('#fileupload').fileupload({
      sequentialUploads: true,
      ....
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-11-17
    • 2019-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多