jeimz173's avatar

How to chunk large file

hi im looking for a way to chunk my videos into smaller pieces. im having trouble with uploading my videos... also in Indonesia they have slow internet connection so if my friend upload a file with slow connection the session was died..

0 likes
6 replies
jlrdw's avatar

You could use a third party service and just store the link to the video in the database.

1 like
jekinney's avatar

Hopefully you have a good understanding of JavaScript. This is one of the times it's pretty much mandatory.

The file helper built in has a lot of features baked in to help.

Simple way is to continually check the progress and upload ajax.

There are packages available also that wrap up the JavaScript code and arguably make it easier.

First off the ol Google machine:

https://github.com/blueimp/jQuery-File-Upload/wiki/Chunked-file-uploads

As far as I know it's all JavaScript clients side code to chunk file uploads. Serverside is pretty consistent as far as processing files. Changing settings for longer time out is only globally set so probably don't want to mess with that.

Good luck and have fun!

jeimz173's avatar

i like the concept of blueimp/jQuery-File-Upload but i want to use some third parties with VUE js. i don't want to use jQuery anymore...

:(

hatem's avatar

@pionl i tried your library but i received chunks as single files

Please or to participate in this conversation.