WebDataBinder and @MVC request param binding detect and introspect MultipartFile arrays as well (SPR-2784)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3588 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2010-08-15 22:51:02 +00:00
parent 29c3bb3152
commit e39f0704a2
8 changed files with 179 additions and 38 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2009 the original author or authors.
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -107,7 +107,7 @@ public class PortletRequestDataBinder extends WebDataBinder {
MutablePropertyValues mpvs = new PortletRequestParameterPropertyValues(request);
if (request instanceof MultipartRequest) {
MultipartRequest multipartRequest = (MultipartRequest) request;
bindMultipartFiles(multipartRequest.getFileMap(), mpvs);
bindMultipart(multipartRequest.getMultiFileMap(), mpvs);
}
doBind(mpvs);
}