什么是xmlhttprequest级别2的最大文件上传大小? [英] What is the maximum file upload size with xmlhttprequest level 2?
本文介绍了什么是xmlhttprequest级别2的最大文件上传大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
//www.w3.org/TR/XMLHttpRequest/#the-send-method]rel =nofollow noreferrer> XMLHttpRequest规范没有提及上传大小的限制。
实际上,上传请求受以下限制:
- 同时上传的数量:在流行的浏览器中允许多个并发的AJAX(XmlHttpRequest)请求? / b>
- 在Web服务器上配置的限制,例如。
LimitRequestBody
在Apache上,client_max_body_size
Nginx。 - 服务器端脚本环境的限制,例如
upload_max_filesize
和post_max_size
。 - 内存限制( bug,客户端或服务器端)。
另见:
使用-xmlhttprequest-streaming>发送文件
What is the maximum file upload size with xmlhttprequest level 2 with HTML5?
解决方案
The XMLHttpRequest specification does not mention any limits on the upload size.
In practise, upload requests are limited by:
- The number of simultaneous uploads: How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?
- The configured limit on the web server, eg.
LimitRequestBody
on Apache,client_max_body_size
on Nginx. - The limits in the server-side scripting environment, e.g.
upload_max_filesize
andpost_max_size
in PHP. - Memory limits (bugs, client-side or server-side).
See also:
这篇关于什么是xmlhttprequest级别2的最大文件上传大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文