Configure CommonsMultipartResolver to support specific HTTP methods #27161
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Commons FileUpload and therefore Spring's
CommonsMultipartResolver
traditionally supports POST requests only. There are several examples on StackOverflow and co where this got extended to e.g. POST and PUT. WhileStandardServletMultipartResolver
does not restrict the HTTP method by default and suggests itself as a modern-day alternative, there are still scenarios where the maximum portability of Commons FileUpload (as a library that ships with the application) is desirable. As a consequence, asupportedMethods
configuration option for enumerating POST, PUT, possibly PATCH or even custom methods is desirable.This goes along with the new
strictServletCompliance
flag inStandardServletMultipartResolver
(#26826).The text was updated successfully, but these errors were encountered: