Upload large files to BOX fails consistently
I believe this question has been asked before last year and there was no real solution available then.
Here is my question -
I try to upload large files (500MB and larger) via BOX API and the write fails.
I was thinking I could probably upload the file in chunks and then append each chunk to the previous to create the entire file in my BOX user account. But according to this post here appending to an existing file is (was) not supported.
https://community.box.com/t5/Box-Developer-Forum/Appending-Data-to-existing-File/td-p/40151
How has anyone else tackled this ? Reading of the large file fails sometimes but passes after a few iterations. Write fails consistently. The upload limit is 5GB so that is not an issue. These are word documents.
- Thanks
-
fyi
https://medium.com/box-developer-blog/introducing-the-chunked-upload-api-f82c820ccfcbIt appears there is an API to do chunk uploads of a large file (>50MB)
1. Open an Upload Session (specify file_name, parent_id, file_size, box_auth_token). Returns session_id, number of parts and part_ids
2. Use the session_id, part_ids to upload one part at a time (retry for failed parts)Does this work as specified ?
-
Have you looked at our Uploader UI Element
https://developer.box.com/docs/box-content-uploader
It uses chunking to upload files. You can see the implementation (this particular one is JS based) here https://github.com/box/box-ui-elements/tree/master/src/api/uploads
Our SDKs also have chunked upload
https://github.com/box/box-node-sdk/blob/master/lib/chunked-uploader.js
-
Hi
I exported the Content Uploader code on codepen via https://codepen.io/box-platform/pen/QvqGwr
We hosted the hosted files on our GoDaddy hosting space. It seems that file uploads worked well for files smaller than approximately 50MB. For files larger than 50MB, the upload percentage remained at 0% and after awhile, a retry button/icon was shown instead.
Any idea what went wrong? Thanks!
-
Hello,
I have the exact same issue with the Content Uploader that works proplery when uploading files with a size < 50 Mb.
It fails all the time with files having a size greater that 50 Mb - see: https://community.box.com/t5/Platform-and-Development-Forum/Uploads-limited-to-50-Mo-in-Content-Uploader/m-p/58829
Did you manage to solve this issue?
Maxime
投稿コメントは受け付けていません。
コメント
5件のコメント