Polishing contribution

Closes gh-27830
This commit is contained in:
rstoyanchev
2022-04-28 11:26:50 +01:00
parent caaf83b8e6
commit f0d149b330
3 changed files with 25 additions and 97 deletions

View File

@@ -104,9 +104,8 @@ public class ServletRequestDataBinder extends WebDataBinder {
* HTTP parameters: i.e. "uploadedFile" to an "uploadedFile" bean property,
* invoking a "setUploadedFile" setter method.
* <p>The type of the target property for a multipart file can be MultipartFile,
* Part, byte[], or String. The Part binding is only supported when the request
* is not a MultipartRequest. The latter two receive the contents of the uploaded file;
* all metadata like original file name, content type, etc are lost in those cases.
* byte[], or String. Servlet Part binding is also supported when the
* request has not been parsed to MultipartRequest via MultipartResolver.
* @param request the request with parameters to bind (can be multipart)
* @see org.springframework.web.multipart.MultipartHttpServletRequest
* @see org.springframework.web.multipart.MultipartRequest

View File

@@ -107,10 +107,9 @@ public class WebRequestDataBinder extends WebDataBinder {
* <p>Multipart files are bound via their parameter name, just like normal
* HTTP parameters: i.e. "uploadedFile" to an "uploadedFile" bean property,
* invoking a "setUploadedFile" setter method.
* <p>The type of the target property for a multipart file can be Part, MultipartFile,
* byte[], or String. The Part binding is only supported when the request
* is not a MultipartRequest. The latter two receive the contents of the uploaded file;
* all metadata like original file name, content type, etc are lost in those cases.
* <p>The type of the target property for a multipart file can be MultipartFile,
* byte[], or String. Servlet Part binding is also supported when the
* request has not been parsed to MultipartRequest via MultipartResolver.
* @param request the request with parameters to bind (can be multipart)
* @see org.springframework.web.multipart.MultipartRequest
* @see org.springframework.web.multipart.MultipartFile