Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1422

Support multiple MultipartFile-s for same request parameter name

    XMLWordPrintable

    Details

      Description

      In Spring 3.0.4 this support has been added for Spring MVC (see related ticket SPR-2784). Please make this feature available in Spring Webflow 2 as well.

      I've debugged a bit and found that (at least) in org.springframework.webflow.context.servlet.HttpServletRequestParameterMap's "protected Object getAttribute(String key)" method

      50	if (request instanceof MultipartHttpServletRequest) {
      51		MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
      52		Object data = multipartRequest.getFileMap().get(key);
      53		if (data != null) {
      54			return data;
      55		}
      56	}
      

      needs to be changed into

      	if (request instanceof MultipartHttpServletRequest) {
      		MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
      		Object data = multipartRequest.getMultiFileMap().get(key);
      		if (data != null) {
      			return data;
      		}
      	}
      

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            sslavic Stevo Slavić
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: