0

I've written a simple django app for dotcloud which is intended to manipulate files sent to it using a post request. I've tested this locally and it seems to work fine, however I've just deployed the app and testing it by posting a 1.7MB pdf file kicked up the following error:

413 Request Entity Too Large

What are the limits in size for a post request? I'm intending on sending files of this size and potentially larger - is there a better way / a way that will work without encountering an error?

user714852
  • 2,054
  • 4
  • 30
  • 52

1 Answers1

5

This is a default limit for nginx.

Increase HTTP POST Max Size

By default, HTTP POST requests are limited to a body size of 1 MiB.

You can configure it using the following directive:

client_max_body_size 10m;

Note that our HTTP gateways enforce a limit of 100 MiB.

Amber
  • 507,862
  • 82
  • 626
  • 550