Skip to content

Conversation

@artembilan
Copy link
Member

Fixes #2872

The same HTML form entry may have several files in the multi-part request.
Parse all of them in the MultipartAwareFormHttpMessageConverter.java
and re-map to the result MultiValueMap

Cherry-pick to 5.1.x

Fixes spring-projects#2872

The same HTML form entry may have several files in the multi-part request.
Parse all of them in the `MultipartAwareFormHttpMessageConverter.java`
 and re-map to the result `MultiValueMap`

**Cherry-pick to 5.1.x**
@artembilan
Copy link
Member Author

Looks like we don't have any tests for multi-part files.

Do not merge yet. Stay tuned.

@artembilan artembilan changed the title [DO NOT MERGE YET] GH-2872: Parse all the multi-part files GH-2872: Parse all the multi-part files Apr 1, 2019
@artembilan
Copy link
Member Author

Ready for review and merging if that.

@garyrussell garyrussell merged commit 2e2b49a into spring-projects:master Apr 2, 2019
garyrussell pushed a commit that referenced this pull request Apr 2, 2019
* GH-2872: Parse all the multi-part files

Fixes #2872

The same HTML form entry may have several files in the multi-part request.
Parse all of them in the `MultipartAwareFormHttpMessageConverter.java`
 and re-map to the result `MultiValueMap`

**Cherry-pick to 5.1.x**

* * Add test for multi-part files
@garyrussell
Copy link
Contributor

Cherry-picked as c8e78db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Multiple Files for One Form Field in multipart/form-data

2 participants