With the "old" WebFlux multipart functionality, we could limit the number of parts with org.springframework.http.codec.multipart.DefaultPartHttpMessageReader#maxParts, and the maximum part size with a combination of org.springframework.http.codec.multipart.DefaultPartHttpMessageReader#maxInMemorySize and org.springframework.http.codec.multipart.DefaultPartHttpMessageReader#maxDiskUsagePerPart.
But org.springframework.http.codec.multipart.PartEventHttpMessageReader does not offer such a configuration. It does have maxInMemorySize, but that can only be used to limit the size of form parts and has no effect on file parts.
Is there a particular reason for not offering that configuration? Is there another recommended way of implementing these limits myself when using PartEvent?
With the "old" WebFlux multipart functionality, we could limit the number of parts with
org.springframework.http.codec.multipart.DefaultPartHttpMessageReader#maxParts, and the maximum part size with a combination oforg.springframework.http.codec.multipart.DefaultPartHttpMessageReader#maxInMemorySizeandorg.springframework.http.codec.multipart.DefaultPartHttpMessageReader#maxDiskUsagePerPart.But
org.springframework.http.codec.multipart.PartEventHttpMessageReaderdoes not offer such a configuration. It does havemaxInMemorySize, but that can only be used to limit the size of form parts and has no effect on file parts.Is there a particular reason for not offering that configuration? Is there another recommended way of implementing these limits myself when using
PartEvent?