Currently in master this commit added support for capturing multiple file uploads into a list with the caveat that the @RestForm value should not be set. In my opinion we should implement instead the possibility to set a name to group file uploads into two different fields.
Implementation ideas
For example if I have a form pojo like this:
class Form {
@RestForm
List<FileUpload> attachments;
}
Then the default behavior that is already implemented would execute and caputre all file uploads into this field. If, instead, I have two fields like this:
class Form {
@RestForm("images")
List<FileUpload> images;
@RestForm("attachments")
List<FileUpload> attachments;
}
The backen would caputer into images the file uploads coming from the form field images which can be duplicated. Example request:
Description
Currently in master this commit added support for capturing multiple file uploads into a list with the caveat that the @RestForm value should not be set. In my opinion we should implement instead the possibility to set a name to group file uploads into two different fields.
Implementation ideas
For example if I have a form pojo like this:
Then the default behavior that is already implemented would execute and caputre all file uploads into this field. If, instead, I have two fields like this:
The backen would caputer into images the file uploads coming from the form field
images
which can be duplicated. Example request:https://github.com/quarkusio/quarkus/issues/17246
$upstream:17246$