Skip to content

Add header params to MultipartFormDataOutput and FileUpload #48709

@comrt

Description

@comrt

Description

Quarkus supports MultipartFormDataOutput in Resteasy and in REST-Reactive as well.
Both APIs are very similar, but lack the Option to add HTTP-Header params in the addFormData-Method.
Adding extra http-headers to an input-part is quite useful for adding metadata to binary data.

What you can do of course is the following:

formDataOutput.getAllFormData().get("documents").get(i).getHeaders().add("Content-ID", file.tagName());

But this is pretty unconvenient. Therefore it would be nicer to to add params directly.

The same goes with REST-Reactives FileUpload/FilePart interface as it has no method to get Headers for an input-part.

Implementation ideas

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions