filestack-js
filestack-js copied to clipboard
Google Drive to S3 upload timeout (504 Gateway timeot)
I use this code to show FilePicker:
window.addEventListener('DOMContentLoaded', function () {
const apikey = '<my_key>';
const client = filestack.init(apikey);
const options = {
maxFiles: 20,
onOpen: () => console.log('opened!'),
onUploadDone: (res) => console.log(res),
storeTo: {
location: 'S3',
access: 'public',
region: 'us-east-1',
container: '<my_container>',
path: '<my_path>'
}
};
client.picker(options).open();
});
When I try to upload files from Google Drive larger than ~2Gb, it fails with "504 Gateway Timeout" after 60 sec and in console I can see:
{
filesFailed: [{
filename: "<file_name>.mp4",
handle: undefined,
mimetype: "video/mp4",
originalPath: "<somepath>",
size: 3278866942,
source: "googledrive",
uploadId: "XRwreejxe1ErpttO",
url: undefined
}],
filesUploaded: []
}
After numerous tests I can see that if 60 sec is not enough to upload the file from Google drive to S3, it fails with a timeout. If uploaded from local storage, it works fine. Do I miss some configuration to make it work with the large files?
I think I have same issue as you - 504 response for any file uploaded via google drive larger than ~2.5GB
Did you find a solution?
No. I did not find any workaround...
@sethk4783 could you please help with it? This is long waited issue