Skip to content

PartEvent API should support limiting the number of file parts #31343

Closed
@kzander91

Description

@kzander91

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?

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions