#6443 (Lino says "Bad request" when image is too big)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kurzbeschreibung
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".
Kinder
Kommentare
- 10 Monate, 3 Wochen ago von 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 Monate, 3 Wochen ago von Luc Saffre Antwort auf Luc Saffre about #6443 (Lino says "Bad request" when image is too big) : Test:
⌧ - 10 Monate, 3 Wochen ago von Luc Saffre about #6443 (Lino says "Bad request" when image is too big) (1 Antwort) : 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 Monate, 4 Wochen ago von 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 Monate, 4 Wochen ago von 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 Monate, 4 Wochen ago von 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).