本文介紹了xmlhttprequest 級(jí)別 2 的最大文件上傳大小是多少?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
使用 HTML5 的 xmlhttprequest 級(jí)別 2 的最大文件上傳大小是多少?
What is the maximum file upload size with xmlhttprequest level 2 with HTML5?
推薦答案
XMLHttpRequest 規(guī)范 沒有提到對(duì)上傳大小的任何限制.
The XMLHttpRequest specification does not mention any limits on the upload size.
實(shí)際上,上傳請(qǐng)求受限于:
In practise, upload requests are limited by:
- 同時(shí)上傳的數(shù)量:如何流行的瀏覽器允許許多并發(fā) AJAX (XmlHttpRequest) 請(qǐng)求?
- 網(wǎng)絡(luò)服務(wù)器上配置的限制,例如.
LimitRequestBody
在 Apache 上,client_max_body_size
. - 服務(wù)器端腳本環(huán)境的限制,例如
upload_max_filesize
和post_max_size
在 PHP 中. - 內(nèi)存限制(錯(cuò)誤,客戶端或服務(wù)器端).
- 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).
另見:
- 使用 XmlHttpRequest 發(fā)送文件:流式傳輸?
這篇關(guān)于xmlhttprequest 級(jí)別 2 的最大文件上傳大小是多少?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!