Handling plupload#39;s chunked uploads on the server-side(在服务器端处理 plupload 的分块上传)
问题描述
当我使用 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 的分块上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在服务器端处理 plupload 的分块上传


- Laravel 仓库 2022-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- SoapClient 设置自定义 HTTP Header 2021-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01