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

Support for application/x-www-form-urlencoded #173

Open
thelovekesh opened this issue Sep 8, 2024 · 2 comments
Open

Support for application/x-www-form-urlencoded #173

thelovekesh opened this issue Sep 8, 2024 · 2 comments

Comments

@thelovekesh
Copy link

It seems like this implementation only currently supports content-type applciation/json. Is it possible to use application/x-www-form-urlencoded by any chance?

@tam-nique
Copy link

if you are using along with hono, you can parseBody first then ask to validate schema.
Sample request schema definition:
Screenshot 2024-09-09 at 12 16 16
Handle:
Screenshot 2024-09-09 at 12 16 02
Here you have body.file is the FIle instance
Hope this help

@thelovekesh
Copy link
Author

Thanks @tam-nique, that's helpful. But I was looking for something out of the box as the application/x-www-form-urlencoded and multipart/form-data are largely used content encodings.

I could put up a PR but need some guidance/confirmation from the maintainers.

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

2 participants