sebastiandaschner blog


Uploading Files With Quarkus

#quarkus wednesday, september 07, 2022

Uploading files in an enterprise application sometimes turns out to be more tricky than it sounds. I’ve recorded a video that shows how to upload single and multiple files in an HTML form upload with a Quarkus application.

We’re gonna have a look at how to read the file names and contents with both RESTEasy Classic and RESTEasy Reactive.

 

 

To try it out yourself, you can find the code on GitHub.

If you’re dealing with large files, you might also need to look at the
quarkus.http.limits.max-body-size option to set the maximum file size in the configuration, e.g.

quarkus.http.limits.max-body-size=2G

 

Found the post useful? Then you might want to have a look at my Quarkus video courses or full-day online workshops in December.