本文介绍了在服务器端处理plupload的分块上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用plupload分块文件(设置选项 chunk_size )时,我得到了每个块的单独的PHP请求。看看 $ _ FILES 变量,每个块的类型都是application / octet-stream

是否有任何简单,标准和舒适的方法来在服务器端将PHP组合在一起?



随着理智的保证(例如当其中一件遗失等)。

最后使用了与plupload-1.5.2(examples / upload.php)捆绑在一起的官方示例代码:


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".

Is there any simple, standard and comfortable way how to combine these pieces in PHP at server-side?

With sanity guaranteed (e.g. when one of the pieces is missing etc.).

解决方案

I finally 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的分块上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 11:36
查看更多