- Newest
- Most votes
- Most comments
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:
-
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.
-
Check your application code or any libraries you're using for S3 uploads. There might be a file size limit set there.
-
If you're using a web interface, check for any client-side JavaScript limitations on file size.
-
If you're using AWS SDK, ensure it's configured correctly and not imposing any artificial limits.
-
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.
-
If you're using API Gateway in your upload process, check its settings as it has configurable payload size limits.
To resolve this issue:
-
If using direct API calls, implement multipart uploads for files larger than 100MB.
-
Review and adjust any file size limitations in your application code.
-
If using AWS SDK, ensure it's properly configured for large file uploads.
-
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
Relevant content
- asked 2 years ago
