【问题标题】:What is the maximum file upload size with xmlhttprequest level 2?xmlhttprequest 级别 2 的最大文件上传大小是多少?
【发布时间】:2012-02-18 17:53:02
【问题描述】:

使用 HTML5 的 xmlhttprequest 级别 2 的最大文件上传大小是多少?

【问题讨论】:

  • 这将取决于您的服务器配置。

标签: html file-upload xmlhttprequest xmlhttprequest-level2


【解决方案1】:

XMLHttpRequest specification 并未提及对上传大小的任何限制。

实际上,上传请求受限于:

  1. 同时上传数:How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?
  2. Web 服务器上配置的限制,例如。 LimitRequestBody 在 Apache 上,client_max_body_size 在 Nginx 上。
  3. 服务器端脚本环境中的限制,例如upload_max_filesizepost_max_size 在 PHP 中。
  4. 内存限制(bugs,客户端或服务器端)。

另见:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-28
    • 1970-01-01
    • 1970-01-01
    • 2022-01-14
    • 2021-04-27
    • 1970-01-01
    • 2017-09-16
    • 1970-01-01
    相关资源
    最近更新 更多