How can I upload large files by chunk, pieces?

2019-02-10 12:46发布

I have got a little file sharing webpage. It's free to use it. I would like to upload files between 0mb and 1GB. I'm searching in Google since two days, but I can't find anything what I needed...

My webpage: http://boxy.tigyisolutions.hu However I can upload only 20-30mb now. I would like upload only 1 file at once. But it may be bigger than 500-600mb ... Can anyone help me?

I tried jquery fileupload, but it's uploading nothing for me.

1条回答
不美不萌又怎样
2楼-- · 2019-02-10 13:34

The Blob.slice method will allow you to split up a file client-side into chunks. You must then send each chunk individually. This will only work on browsers that support the File API.

If you don't want to write this code yourself, Fine Uploader is a javascript uploader library that has the ability to chunk files for you and send them to your server.

查看更多
登录 后发表回答