githubEdit

What are the file size limits for API Gateway uploads?

Context When uploading files through API Gateway endpoints, there are specific size limitations that need to be considered. Customers may encounter 504 Gateway Timeout errors when attempting to upload files that exceed these limits. Answer API Gateway has default payload size limits that vary depending on the type of API you are using: REST API: Maximum payload size of 10 MB HTTP API: Maximum payload size of 2 MB If you are receiving a 504 Gateway Timeout error when uploading files, first verify that your file size does not exceed these limits. If your file is larger than the allowed size, you will need to either: Break down the file into smaller chunks Use alternative upload methods such as direct S3 uploads for larger files These limits are set by AWS API Gateway and cannot be increased beyond these default values.

Last updated

Was this helpful?