Upload shows "Forbidden" for too large files (configured at nginx)

The Upload component ( https://vaadin.com/components/vaadin-upload/ ) shows …

  • a “Forbidden” message when for example the user is not logged in any more
  • a “File is too large” message when the file is larger than the configured max file size.

This behavior works fine.
But when there is an nginx between client and server and the nginx has its own file size limitation, the Upload component shows a “Forbidden” message for too large files (the nginx answers with HTTP status code 413).

Could you please add another rule explicitly for 413 and also show the “File is too large” message?
Thanks in advance.

I copied your report as issue here https://github.com/vaadin/vaadin-upload/issues/364