-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
MultiPartParser not detecting uploaded files #1974
Comments
Could you please share your client code so I can reproduce this issue locally? |
I did some tests with your controller code and postman, but I can't reproduce this issue, it works fine in my local environment. |
After multiple tries (even reinstalling drogon) I managed to narrow it down. |
I works fine when I tried to upload a file of 300k bytes. Please check if your application has write permission to the temporary files folder. |
Description:
I am experiencing an issue with the Drogon web framework where the MultiPartParser is not getting any uploaded files in my POST request handler. I have installed Drogon from the git repository on February 16, 2024, with the last pulled commit being 88d0668. I am running the code on Linux Ubuntu 22.04.2.
Here is a simplified version of my code:
The parse() function returns 0, indicating a successful parse, but both getFilesMap() and getFiles() return empty collections. I have verified that the request contains a file, but it seems that the MultiPartParser is not detecting it.
I should also specify that this same code does work with an older version of drogon that I have on another machine (even with the same file/request).
I would greatly appreciate any help or suggestions on how to resolve this issue. Please let me know if you need any additional information.
Thank you in advance!
The text was updated successfully, but these errors were encountered: