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

REST Client: support download multiple files multipart/form-data #41978

Closed
comrt opened this issue Jul 18, 2024 · 2 comments · Fixed by #41982
Closed

REST Client: support download multiple files multipart/form-data #41978

comrt opened this issue Jul 18, 2024 · 2 comments · Fixed by #41982
Labels
Milestone

Comments

@comrt
Copy link

comrt commented Jul 18, 2024

Description

Quarkus supports on server side multiple file downloads thanks to #26164

The new REST-Client allows multipart responses at the moment only with single files quarkus-rest-client.

In my use case i would like to download multiple files with the same content-disposition name to be generated as a list of Files or FileDownload like so:

public class FormDto {
  @RestForm 
  @PartType(MediaType.APPLICATION_OCTET_STREAM)
  public List<File> files;
  
  @RestForm 
  @PartType(MediaType.APPLICATION_OCTET_STREAM)
  public List<FileDownload> documents;
}

Implementation ideas

No response

@comrt comrt added the kind/enhancement New feature or request label Jul 18, 2024
Copy link

quarkus-bot bot commented Jul 18, 2024

/cc @cescoffier (rest-client), @geoand (rest-client)

@geoand
Copy link
Contributor

geoand commented Jul 18, 2024

#41982 takes care of it

cescoffier added a commit that referenced this issue Jul 19, 2024
Add support for downloading list of files in REST Client
@quarkus-bot quarkus-bot bot added this to the 3.14 - main milestone Jul 19, 2024
@gsmet gsmet modified the milestones: 3.14 - main, 3.13.0 Jul 22, 2024
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jul 22, 2024
barreiro pushed a commit to barreiro/quarkus that referenced this issue Jul 25, 2024
holly-cummins pushed a commit to holly-cummins/quarkus that referenced this issue Jul 31, 2024
danielsoro pushed a commit to danielsoro/quarkus that referenced this issue Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants