Polishing contribution
Closes gh-27830
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user