-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
quarkus.http.body.uploads-directory is ignored when storing binary of REST request input #18113
Comments
/cc @evanchooly |
Thanks for reporting! Can you please share a reproducer project? |
Hi geoand, |
Thanks. It appears that RESTEasy Classic does not write the content of the multipart request to the file system, but leaves that task to the user. Is that correct @ronsigal ? |
Have the same problem. How to get this work ? |
It doesn't work at the moment |
cc @jamezp |
I assume the goal here is to write data to a file. Currently RESTEasy uses Apache mime4j to process multipart data. It uses a |
Exactly |
Okay. We've got some changes coming up along these lines. We could add this too. However, the 4.7.x branch really isn't getting more features. We could consider it for 5.x, but RESTEasy has moved past Jakarta REST 2.1 to Jakarta REST 3.1 and eventually 4.0. |
Understood, thanks |
Has this perhaps been fixed with the latest versions of RESTEasy? |
@geoand I apologize it looks like this never got looked at. I've filed https://issues.redhat.com/browse/RESTEASY-3542 for this. Currently everything just uses the |
🙏🏽 |
I have a REST endpoint that receives a multipart containing a file. I tried to define a custom temporary folder where to store that file, using the property quarkus.http.body-handler.uploads-directory. When the server receives the rest request the file contained in the multipart is stored in the file system temp folder and not in the one specified by the property.
This is my REST endpoint:
the multipart BinaryRequestBody:
and the application.properties:
Expected behavior
The file contained in the BinaryRequestBody object should be stored into /home/tempFolder
Actual behavior
The file contained in the BinaryRequestBody is stored in the default temp directory
Quarkus version or git rev
1.13.7.Final
Build tool
Gradle 6.8.3
Kotlin: 1.4.20
Groovy: 2.5.12
JVM: 11.0.10 (AdoptOpenJDK 11.0.10+9)
OS: Mac OS X 10.16 x86_64
The text was updated successfully, but these errors were encountered: