serlo / infrastructure-modules-shared

Apache License 2.0
4 stars 1 forks source link

Nginx error 413 "Request entity too large" on image upload #5

Closed Knorrke closed 4 years ago

Knorrke commented 5 years ago

The uploaded file is 1,69 MB big, so it shouldn't be too big for the upload. This sounds like a configuration problem: https://kittmedia.com/2013/nginx-fehler-413-request-entity-too-large/

inyono commented 4 years ago

Finally fixed. The limit can be configured via an annotation on the ingress resource.

Also: truncate -s 2M foo.txt creates a file with the specified size for testing purposes.