How can I upload large files by chunk, pieces?

大兔子大兔子 提交于 2019-12-18 16:56:55

问题


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:


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.



来源:https://stackoverflow.com/questions/14646355/how-can-i-upload-large-files-by-chunk-pieces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!