問(wèn)題描述
當(dāng)我使用 plupload 對(duì)文件進(jìn)行分塊時(shí)(設(shè)置選項(xiàng) chunk_size
),我會(huì)為每個(gè)分塊收到一個(gè)單獨(dú)的 PHP 請(qǐng)求.查看 $_FILES
變量,每個(gè)塊的類型都是 "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"
.
有沒有什么簡(jiǎn)單、標(biāo)準(zhǔn)和舒適的方法可以在服務(wù)器端在 PHP 中組合這些部分?
保證完整性(例如,當(dāng)其中一件丟失時(shí)等).
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
這篇關(guān)于在服務(wù)器端處理 plupload 的分塊上傳的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!