Add reactive multipart defaults with Framework's new defaults

See gh-51975
This commit is contained in:
Andy Wilkinson
2026-10-06 15:56:10 +01:00
parent 59d3271d9c
commit d4909e53c5
@@ -50,16 +50,15 @@ public class ReactiveMultipartProperties {
private DataSize maxHeadersSize = DataSize.ofKilobytes(10);
/**
* Maximum amount of disk space allowed per part. Default is -1 which enforces no
* limits.
* Maximum amount of disk space allowed per part. Set to -1 to enforce no limits.
*/
private DataSize maxDiskUsagePerPart = DataSize.ofBytes(-1);
private DataSize maxDiskUsagePerPart = DataSize.ofMegabytes(1);
/**
* Maximum number of parts allowed in a given multipart request. Default is -1 which
* enforces no limits.
* Maximum number of parts allowed in a given multipart request. Set to -1 to enforce
* no limits.
*/
private Integer maxParts = -1;
private Integer maxParts = 50;
/**
* Directory used to store file parts larger than 'maxInMemorySize'. Default is a