本文介紹了在服務器端處理 plupload 的分塊上傳的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
當我使用 plupload 對文件進行分塊時(設置選項 chunk_size
),我會為每個分塊收到一個單獨的 PHP 請求.查看 $_FILES
變量,每個塊的類型都是 "application/octet-stream"
.
When I use plupload to chunk files (setting option chunk_size
), I get a separate PHP request for each chunk. Looking at $_FILES
variable, each chunk is of type "application/octet-stream"
.
有沒有什么簡單、標準和舒適的方法可以在服務器端在 PHP 中組合這些部分?
保證完整性(例如,當其中一件丟失時等).
With sanity guaranteed (e.g. when one of the pieces is missing etc.).
推薦答案
最后我使用了 plupload-1.5.2 (examples/upload.php) 捆綁的官方示例中的代碼:
In the end I used the code from official example bundled with plupload-1.5.2 (examples/upload.php):
http://github.com/moxiecode/plupload/blob/master/examples/upload.php
這篇關于在服務器端處理 plupload 的分塊上傳的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!