Skip to content
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

Allow non-FormFile types in multipart forms #694

Open
b-kamphorst opened this issue Dec 31, 2024 · 0 comments
Open

Allow non-FormFile types in multipart forms #694

b-kamphorst opened this issue Dec 31, 2024 · 0 comments

Comments

@b-kamphorst
Copy link

I adopted Huma in my project over the last days and I really like it! In general I thought it was quite easy to adopt Huma with the exception of Enums (#621 (comment) helped me out) and multipart form data. I found the documentation on multipart form data lacking, but I could get a functioning version after looking at the tests.

My web server receives multipart form data that includes both files and strings. I made a change to Huma v2.27.0 that allows string fields within RawData/MultipartFormFiles. I am curious whether this is a meaningful addition to your work? In extention, it could be useful to allow for fields of arbitrary type within MultipartFormFiles?

Looking forward to your thoughts and keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant