Search code examples
phpfile-uploadchunksplupload

Upload big videos from a form to server - PHP


I have to set up a form allowing the upload of videos whose weight is about 20GB for each.

This processing must be done in PHP.

I did a test with Plupload, but it does not work very well beyond 100MB: the file is uploaded, but its data is unusable (cf screenshot).

Do you have any recommendations/best practices?

Thanks.

enter image description here


Solution

  • Just found the solution, in your .js file that handle the upload you just need to add the multipart option and to put the value to false :)

    It means that the chunk should be sent as binary stream (ie. multipart : false) and not as multipart/form-data (default ie. multipart : true)

    If need here is an example on how I handled video files upload with Plupload : https://github.com/Rapkalin/bigupload

    Hope this helps :)