The DefaultPartHttpMessageReader
creates temp files that are never deleted. There should be an option to delete these files after the corresponding request was handled.
Related to #27613, the resolution of which introduced a Part::delete
method to explicitly remove the temp file. This issue focusses on automatically removing these temp files.
Comment From: vovaspk
@poutsma hi, do you know if it is possible to disable creating temp file? when for example i know i will be receiving files around 10mb, and i want to save them right to the storage from memory, without creating temp file and then copying
Comment From: poutsma
@vovaspk You will need to change the maxInMemorySize
for the DefaultPartHttpMessageReader
by using the ServerCodecConfigurer
, see https://docs.spring.io/spring-framework/docs/current/reference/html/web-reactive.html#webflux-config-message-codecs
Comment From: vovaspk
Thank you very much!