Skip to content

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

Open
@TatuLund

Description

@TatuLund

Copied from https://vaadin.com/forum/thread/18470457/upload-shows-forbidden-for-too-large-files-configured-at-nginx

Description

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.

Expected outcome

a "File is too large" message when the file is larger than the configured max file size.

Actual outcome

a "Forbidden" message when for example the user is not logged in any more

Steps to reproduce

See the description

Browsers Affected

Not browser related

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions