Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Allow @RequestPart POJOs #89

Closed

Conversation

darrenfoong
Copy link

I'm using Spring Cloud OpenFeign, and I have a use case where I need to send multiple files and POJOs as multipart/form-data, for example:

@PostMapping("/items")
SomeResponse uploadItems(@RequestPart List<SomePojo> items, @RequestPart List<MultipartFile> itemImages);

There was a recent fix in spring-cloud/spring-cloud-openfeign#258 that allowed the use of multiple @RequestParts, but it was only for MultipartFile and boxed primitive types. This PR builds on the abovementioned PR by:

With this PR, pull requests #71 and #74 are also no longer necessary.

@darrenfoong
Copy link
Author

Moved the PR to spring-cloud/spring-cloud-openfeign#314

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant