Is there any way to upload a big file (>50MB) to Box by using Google Apps Script?
AnsweredI'm trying to use Box chunked-upload API from Google Apps Script for a big file (>50MB). I could create session and uploaded part files, but I got stuck to commit upload.
This API requires "Digest" header mandatorily, but I cannot compute the digest of the file since it's more than 50MB. Google Apps Script can handle files (blob) smaller than 50MB.
I've been asking Google support and Box support (case) if there is any way to compute SHA-1 of a big file (>50MB) in Google Apps Script, but there was no hope.
So I'd like to ask you all if there's any similar case or other way to upload a big file to Box by using Google Apps Script.
For example, if I can somehow omit the "digest" header at my own risk, the problem is solved.
-
Note that the standard upload file endpoint (https://developer.box.com/reference#upload-a-file) says that Box recommends that you use the chunked upload for files larger than 50MB, but doesn't say that they require it. Maybe it's worth trying just using that simpler endpoint?
Alternatively, could you possibly leverage Box's FTP capabilities from Google Apps Script instead? I'll admit I haven't checked Apps Script, but most languages tend to have a pretty robust FTP library available.
Hope that helps,
Ian
-
Thank you for your reply .
I would like to use the simpler method or other method like FTP, but the problem is that Google Apps Script cannot handle big blog (>50MB).. That's why I tried to use chuncked upload API, but I found the digest header is mandatory.
For now I gave it up because I got the clear answer from .
Please sign in to leave a comment.
Comments
4 comments