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

Handling a multipart request part as a file based on the content-type #29725

Closed
pedroigor opened this issue Dec 7, 2022 · 1 comment · Fixed by #29729
Closed

Handling a multipart request part as a file based on the content-type #29725

pedroigor opened this issue Dec 7, 2022 · 1 comment · Fixed by #29729
Assignees
Labels
area/rest kind/enhancement New feature or request
Milestone

Comments

@pedroigor
Copy link
Contributor

pedroigor commented Dec 7, 2022

Description

Currently, Resteasy Reactive only handles a multipart request field as a file if the fileName parameter is set.

The proposal here is to also allow handling file parts based on the content-type set to a field.

The main use case for this RFE is programmatically handling multipart requests where fields are obtained directly from the FormData instance associated with the request and their filenames are not known by the application, but only the content-types.

Related to:

Implementation ideas

  • Add a quarkus.http.body.multi-part.file-content-types setting to set a list of content-types that should be used to handle file parts in a multipart request
  • Change MultiPartUploadHandler to recognize the setting above and process parts accordingly to their content-type
@pedroigor pedroigor added the kind/enhancement New feature or request label Dec 7, 2022
@pedroigor pedroigor self-assigned this Dec 7, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Dec 7, 2022

/cc @FroMage, @geoand, @stuartwdouglas

pedroigor added a commit to pedroigor/quarkus that referenced this issue Dec 7, 2022
pedroigor added a commit to pedroigor/quarkus that referenced this issue Dec 7, 2022
pedroigor added a commit to pedroigor/quarkus that referenced this issue Dec 7, 2022
pedroigor added a commit to pedroigor/quarkus that referenced this issue Dec 7, 2022
@quarkus-bot quarkus-bot bot added this to the 2.16 - main milestone Dec 7, 2022
@gsmet gsmet modified the milestones: 2.16 - main, 2.13.6.Final Dec 14, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Dec 14, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rest kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants