admin管理员组文章数量:1391925
I am currently trying to upload files to Alfresco CMS and i have two approaches
- Use submit the file as multipart POST request
- Upload the file as chunks from the client and then reassemble the chunks on the Alfresco side using Web Scripts.
Which approach is better and why?
I did some research online on the two approaches
difference between multipart and chunked protoccol
How does HTTP file upload work?
Why is form enctype=multipart/form-data required when uploading a file?
But still unable to conclusively determine the pros and cons.
PS: The size of files being uploaded can range for 5 MB to 2 GB.
I am currently trying to upload files to Alfresco CMS and i have two approaches
- Use submit the file as multipart POST request
- Upload the file as chunks from the client and then reassemble the chunks on the Alfresco side using Web Scripts.
Which approach is better and why?
I did some research online on the two approaches
difference between multipart and chunked protoccol
How does HTTP file upload work?
Why is form enctype=multipart/form-data required when uploading a file?
But still unable to conclusively determine the pros and cons.
PS: The size of files being uploaded can range for 5 MB to 2 GB.
Share Improve this question edited May 23, 2017 at 12:25 CommunityBot 11 silver badge asked Dec 29, 2015 at 11:47 Praveen KumarPraveen Kumar 1,5391 gold badge23 silver badges39 bronze badges 1- Note that "chunks" in Alfresco CMS does not refer to HTTP chunked transfer-encoding. – ZachB Commented Jan 31, 2023 at 22:04
1 Answer
Reset to default 3I think use of second approach
Upload the file as chunks from the client and then reassemble the chunks on the Alfresco side using Web Scripts
will be better, the reason being Form submission is synchronous and will block browser usage until the whole file is uploaded which in your case is pretty big, Using client side script to send your data will enable you show upload progress to end-user and provide you the ability to resume/restart upload in case of any network error during file upload.
You can read this article for more details http://creativejs./tutorials/advanced-uploading-techniques-part-1/
本文标签:
版权声明:本文标题:javascript - What is the difference between a multipart file upload and a chunked file upload ? Which approach is more efficient 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744755858a2623457.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论