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
Here is the way to parse the chunks, and store the result in $upload_file (change $uploaded_file to match what you need).