Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 5MB minimum file size limit #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Remove 5MB minimum file size limit #45

wants to merge 2 commits into from

Conversation

jox
Copy link

@jox jox commented Feb 10, 2022

There is no need for a 5MB minimum file size limit. AWS does not set this restriction for multipart copy.

When trying to upload files smaller than 5MB the following error will occur: "The specified upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed."

This is caused by a flaw in the code of this module. But it's easily fixed.

(Regarding 5MB minimum file size limit see also: https://stackoverflow.com/questions/24839387/uploading-a-file-less-than-5mb-through-using-multipart-upload-api-to-aws-s3-buck)

@nathaniel-holder
Copy link

This PR worked for me, but note that the AWS docs specify that input file has to be more than 5MB to use the range parameter: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html#:~:text=the%20specified%20time.-,x%2Damz%2Dcopy%2Dsource%2Drange,-The%20range%20of
Seems like the AWS docs are incorrect there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants