当我使用 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模板网!
在 PHP 上启用 SOAPenable SOAP on PHP(在 PHP 上启用 SOAP)
从 PHP SOAP 服务器获取接收到的 XMLGet received XML from PHP SOAP Server(从 PHP SOAP 服务器获取接收到的 XML)
不是有效的 AllXsd 值not a valid AllXsd value(不是有效的 AllXsd 值)
PHP SoapClient:SoapFault 异常无法连接到主机PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 异常无法连接到主机)
PHP中P_SHA1算法的实现Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的实现)
将字节数组从 PHP 发送到 WCFSending a byte array from PHP to WCF(将字节数组从 PHP 发送到 WCF)