Open kfird214 opened 6 months ago
When trying to upload a file that is greater than >2 GiB The implementation fails with this error.
Node js Buffer is allowed to use 2GiB max. There is a need to convert the s3.PutObject to some kind of streaming upload.
https://stackoverflow.com/a/67373050
Probably issue #20 needs to be addressed before this.
https://github.com/hkusu/s3-upload-action/blob/df0d0d688ce4593c477be764d08f63566dfd968e/src/main.js#L110C11-L110C18
let params = { Bucket: input.awsBucket, Key: fileKey, ContentType: input.contentType, Body: fs.createReadStream(input.filePath), ACL: acl, }; await s3.putObject(params).promise();
When trying to upload a file that is greater than >2 GiB The implementation fails with this error.
Node js Buffer is allowed to use 2GiB max. There is a need to convert the s3.PutObject to some kind of streaming upload.
https://stackoverflow.com/a/67373050
Probably issue #20 needs to be addressed before this.
Solution?
https://github.com/hkusu/s3-upload-action/blob/df0d0d688ce4593c477be764d08f63566dfd968e/src/main.js#L110C11-L110C18