Affects: 3.0.6
I'm trying to do multipart uploads following the documentation provided at PartEvent.
Whilst trying to stream multipart uploads, I've noticed that the FilePartEvents are created with a maximum buffer size of 8129 bytes and this is currently hard coded:
https://github.com/spring-projects/spring-framework/blob/dedcb19f44fe667fb8f3f6e3230fbf9263f49942/spring-web/src/main/java/org/springframework/http/codec/multipart/FilePartEvent.java#L135
The effect of this is that for a large file upload, this becomes quite inefficient as a large number of FilePartEvents are created. Can this be made configurable? Or perhaps have I have overlooked something?
Comment From: ahmedriza
I don't think what I'm seeing is related to the configured value of 8192 in DataBufferUtils. Any pointers as to where to configure this value?
Comment From: ahmedriza
Found out how this can be done on the Netty HttpServer (by changing the maxChunkSize on the HttpRequestDecoder).