I get 413 Request Entity Too Large when uploading video file to Amazon S3

Viewed 12161

While uploading a video file to Amazon S3, the file hits 100% in uploading, then i get the response 413 Request Entity Too Large. How do i fix this so that i can upload video files to Amazon S3?

Im using Nodejs, Express, Heroku, Cloudflare and Amazon S3.

3 Answers

Since you mentioned Cloudflare, that is likely the culprit. They enforce a maximum upload size of 100MB for their free plan. Since you’re using AWS S3, you can generate pre-signed URLs and upload directly to your S3 bucket instead of going through your server.

Related