#6443 (Lino says "Bad request" when image is too big)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Summary
I paste an image af 1.5MB size into the editor and then hit Ctrl+S: Lino just gives a red warning bubble mentioning "bad request" and html tags. But the site admins get an email "Request body exceeded settings.DATA_UPLOAD_MAX_MEMORY_SIZE".
Children
Comments
- 10 months, 3 weeks ago by Luc Saffre about #6443 (Lino says "Bad request" when image is too big) : When the limit is set only in nginx, the user sees "Request Entity Too Large", which is better than Bad Request, and there is no email to the admins now.

- 10 months, 3 weeks ago by Luc Saffre in reply to Luc Saffre about #6443 (Lino says "Bad request" when image is too big) : Test:
⌧ - 10 months, 3 weeks ago by Luc Saffre about #6443 (Lino says "Bad request" when image is too big) (1 reply) : A workaround might be to set DATA_UPLOAD_MAX_MEMORY_SIZE to None. But only when nginx is configured to protect against a bomb upload by client_max_body_size.
- 10 months, 4 weeks ago by Luc Saffre about #6443 (Lino says "Bad request" when image is too big) : I tend to say no. I'd prefer a message "Your content exceeds the allowed limit of X KB. Ask your site admin to increase it."
- 10 months, 4 weeks ago by Sharif Mehedi about #6443 (Lino says "Bad request" when image is too big) : We can deploy a compression mechanism when image size is too big. Should I try that?
- 11 months, 4 weeks ago by Luc Saffre about #6443 (Lino says "Bad request" when image is too big) : Created new Ticket #6443 (Lino says "Bad request" when image is too big).