Fastest way to upload big files [closed]

牧云@^-^@ 提交于 2019-12-23 05:57:25

问题


I've implemented fineuploader to upload a file without reloading the page. Problem is it is very slow and potentially fails for vary large files (~300M). Note that I am only using Fineuploader 3.1, but expect it will not make a difference to use a more current version.

My question is whether I shouldn't use some sort of Ajax based file upload approach at all for large files, but based on their size fall back to some more traditional solution which reloads the page? What would be the fastest way to upload a big file using a website and not FTP, etc?


回答1:


You could have a look at: Resumable.js Fault Tolerant Resumable File Uploads in JavaScript

As far as I think large files are prone to fault so it is a good idea to make it ressumable.




回答2:


Fine Uploader has changed a lot since 3.1. The current version is already 4.4. You likely will notice a big difference if you upgrade. Also, Fine Uploader is not causing you failures, your network connection is the culprit.

Fine Uploader 5.0 is set to be released next week, and it includes one big feature that will help you specifically as this feature is aimed as speeding up single file large uploads: concurrent chunking. No other upload library offers this feature (it was very complicated to implement). The concurrent chunking feature has been shown to speed up single file large uploads by a factor of at least 2. It does this by sending as many chunks as possible at the same time for a single file. You can read more about this feature in the pre release notes at http://docs.fineuploader.com/branch/develop/features/concurrent-chunking.html.

Note that Fine Uploader also offers the same features as resumable.js along with many other features such as auto retry, image scaling, form support, direct uploads to S3 and Azure, and more.



来源:https://stackoverflow.com/questions/23973358/fastest-way-to-upload-big-files

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