only one MultipartFile object populated when using an java.util.Optional MutipartFile array or list @RequestParam [SPR-15919] #20473
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Brice Roncace opened SPR-15919 and commented
Having the
multipart/form-data
form:When selecting multiple files for the file input, only one file is actually received by the controller when handling this request:
This fails in the same way:
The workaround is to avoid the use of
Optional
:Affects: 4.3.10
Issue Links:
@RequestParam
argument is null in multipart/form-data POSTReferenced from: commits 53a9697, 15c82af
Backported to: 4.3.12
The text was updated successfully, but these errors were encountered: