Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 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.

None yet

1 participant