Skip to content

S3 Upload Limit of 1MB – How to Fix?

0

Hi everyone, We are using Amazon S3 to store visual and audio assets for a game project. When we try to upload files larger than 1MB, we get an error message. It seems like S3 is limiting our upload size, but we are not sure why. Is there a setting we need to change? Any guidance would be appreciated. Thanks!

asked 8 months ago422 views
1 Answer
1
Accepted Answer

There seems to be a misunderstanding about S3's upload limits. Amazon S3 does not have a 1MB upload limit. In fact, S3 supports uploading files up to 5TB in size.

The 1MB limit you're encountering is likely due to a configuration in your application or the method you're using to upload files, rather than an S3 limitation. Here are a few things to check:

  1. If you're using the S3 API directly, make sure you're not using a single PUT operation for files larger than 5GB. For files larger than 100MB, it's recommended to use multipart uploads.

  2. Check your application code or any libraries you're using for S3 uploads. There might be a file size limit set there.

  3. If you're using a web interface, check for any client-side JavaScript limitations on file size.

  4. If you're using AWS SDK, ensure it's configured correctly and not imposing any artificial limits.

  5. Check if you have any AWS WAF rules in place that might be limiting request body size. By default, AWS WAF only inspects the first 16 KB of a request body.

  6. If you're using API Gateway in your upload process, check its settings as it has configurable payload size limits.

To resolve this issue:

  1. If using direct API calls, implement multipart uploads for files larger than 100MB.

  2. Review and adjust any file size limitations in your application code.

  3. If using AWS SDK, ensure it's properly configured for large file uploads.

  4. If WAF is involved, you may need to adjust its settings or implement alternative methods for handling large file uploads.

Remember, S3 is designed to handle very large files, so the limitation is not coming from S3 itself. By identifying where in your upload process the 1MB limit is being imposed, you should be able to resolve this issue and successfully upload larger files to S3.
Sources
S3 PUT file size limit | AWS re:Post
Upload large files to S3 via CLI | AWS re:Post

answered 8 months ago
EXPERT
reviewed 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.