Skip to content

Wrong default unit for "spring.servlet.multipart" sizes #15162

@snicoll

Description

@snicoll

spring.servlet.multipart.max-file-size and spring.servlet.multipart.max-request-size have a default value of 1MB and 10MB respectively. Previously these where handled as raw string value with ad-hoc parsing and moved to DataSize in 2.1

Unfortunately, their unit were set to MB while the former code was considering a raw number to be in bytes. This means that a user upgrading without the suffix will get different sizes. For consistency with 2.0 we should consider change the unit to bytes (basically removeing the two overrides we have at the moment).

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions