As @kolossus has pointed out, You can configure file handling through the built-in quarkus options. However, it seems that quarkus will handle file uploads in pretty much the exact same way regardless of whether or not these options are set.
For example, using RESTEasy's @MultipartForm
public class Resource {
@FormParam("file")
public File file;
}
And then in some controller method:
@POST
@Path("/file")
@Consumes(MediaType.MULTIPART_FORM_DATA)
public Response fileUpload(@MultipartForm Resource upload) {
log.info("File path: {}", upload.file.getAbsolutePath());
}
Then call this method with a file in the request body and you should see the log output containing the path to the uploaded file (Something ugly like /var/folders/y_/_3mfhd2s5ks08fsmhnn80q440000gn/T/5e84410f27304d289f168a76d51b240a).
When you look in that path however, you wont see that file anywhere.
So it seems that quarkus has the options set to the corresponding values by default:
quarkus.http.body.handle-file-uploads=true
quarkus.http.body.uploads-directory=<some random directory in /var>
quarkus.http.body.delete-uploaded-files-on-end=true
Note: tested on v1.4.1.Final