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

Add support for processing a list of files in a multipart #80

Open
FrankW76 opened this issue Feb 15, 2023 · 0 comments
Open

Add support for processing a list of files in a multipart #80

FrankW76 opened this issue Feb 15, 2023 · 0 comments

Comments

@FrankW76
Copy link

FrankW76 commented Feb 15, 2023

Currently you can write code like

//   @Path("callinsickwithattachments")
//   @Consumes(MediaType.MULTIPART_FORM_DATA)
//   @POST SickNoteResponse submitSickNoteWithAttachments(@FormParam("sicknote") SickNote sickNote, @FormParam("attachment") byte[] file);

This will give you the possibility to upload 1 file.
However if you want to dynamicly upload a list of files this is currently not possible.

If however you take the generated Factory class of above code and you change ByteArrayProvider to List<ByteArrayProvider> this works as expected. So I think it should be an easy fix if we could provide a List<byte[]> file in the interface and it generates a factory with a List<ByteArrayProvider>

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

No branches or pull requests

1 participant