How can I upload large files by chunk, pieces?

前端 未结 1 1188
我寻月下人不归
我寻月下人不归 2020-12-31 21:58

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

相关标签:
1条回答
  • 2020-12-31 22: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.

    0 讨论(0)
提交回复
热议问题