問題描述
我(仍在)嘗試使用 php 通過 html 表單上傳 <200mb 的大文件.
I am (still) attempting to upload large files <200mb via a html form using php.
在我對此進行研究的過程中,我遇到了分塊"一詞,我明白這個過程可以將文件分解成方便的大小,例如 5mb,然后在服務器端將它們重新組合成完整的文件.
During my research into this I have come across the term "chunking", I understand that this process can break the file into handy sizes such as 5mb and reassemble them into the full file at the server side.
我的問題似乎是我可以從哪里開始?我似乎無法通過谷歌搜索找到正確的資源(或者我可能不知道要搜索哪些術語).
My problem seems to be where I can begin? I seem unable to find the correct resources by googling (Or perhaps I'm suffering from not knowing which terms to search for).
所以我今天希望有機會用基礎知識來教育自己,看看會很有幫助的方向.我真的不想下載插件或類似的東西,我更喜歡通過實驗來學習.
So what I'm hoping for today is a chance to educate myself with the basics, a direction in which to look would be very helpful. I don't really want to download a plug-in or anything like that, I would prefer to learn by experimentation.
編輯補充:雖然下面的兩個答案看起來是正確的,但這讓我進入了我作為設計師無法做的事情的領域......如果有人讀過這篇文章可以提出建議一種不同的方法,我將不勝感激.
EDIT to add: Although the two answers below would appear to be correct, this takes me into the realm of stuff that I can't do as a designer...If anyone reading this can suggest a different approach I would appreciate it.
推薦答案
Web 瀏覽器不會將上傳內容拆分成塊.為此,您必須使用自己的分塊"功能.客戶端:Flash 程序或 Java 小程序.
Web browsers do not split uploads into chunks. For this you'll have to use your own "chunking" client: a Flash program or a Java applet.
您可以查看 JUpload.wiki里也有例子.
You can take a look at JUpload. There are also examples in the wiki.
來自 SourceForge:
多文件上傳小程序 (JUpload) 解決了傳統 HTML 上傳表單帶來的限制,允許您通過單擊上傳整個目錄及其中的文件.或者,它允許簡單的圖片管理.
Multiple File Upload Applet (JUpload) takes care of the limitation posed by traditional HTML upload forms by allowing you to upload a whole directory and the files within it with a single click. Optionally, it allows simple picture management.
這篇關于文件上傳;如何利用“分塊"?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!