Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why chunk file upload?

I know how to chunk files using JS or PHP but my question is are there circumstances in which chunking is necessary?

I have control over my server configuration and know to write validation rules to keep people from trying to upload Petabtyes or something crazy so I can't understand when I might need chunking.

like image 291
tim peterson Avatar asked Dec 03 '25 23:12

tim peterson


1 Answers

I can't understand when I might need chunking.

A. It might be necessary when your solution is target at 3rd world countries with very slow Internet. You can accept 10MB but at 56KB per sec the are possibility that the internet would trucate the upload before its completed then you can chunk a 10MB file into 10 requests

B. When developing Mobile applications especially J2ME (Low end Phones) its nessary to chuck large files because of restrictions on some of the networks

C. Most upload systems do not support resume functionality like the download managers .. chucking can be a good alternative to implement such.

like image 175
Baba Avatar answered Dec 06 '25 13:12

Baba