Skip to content

Make "MaxSwallowSize" more easily configurable #6669

@ghillert

Description

@ghillert

This is relevant for larger file-uploads and is hard to trace and may cause errors in your browser like The connection was reset.

The following StackOverflow post provides a solution:

http://stackoverflow.com/questions/35748022/multipart-file-maximum-size-exception-spring-boot-embbeded-tomcat

It would be good if Spring Boot would support this out of the box using:

spring.http.multipart.max-swallow-size

Ideally, the Boot MultipartProperties should also be smart enough so that a max-file-size or max-request-size that is larger than the max-swallow-size will either throw an error/warning or implicitly increase the max-swallow-size (Not sure if there are edge-cases against it, though.)

Also, document the issue in the reference guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions