We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm quite possibly taking the wrong approach here, but nevertheless I would rather ask.
I'm currently developing a small file upload module, and I would like to support uploads using multipart/form-data and application/json.
multipart/form-data
application/json
The simplest use case for my problem can be seen in this gist
However, it seems to fail to validate the application/json requests since a stream object is being sent to Joi, instead of the payload properties.
Could you share your opinion about this? Thanks
The text was updated successfully, but these errors were encountered:
Well, you can't have it both ways. Either you parse the payload and validate it or you stream it.
Sorry, something went wrong.
I would recommend asking for general design question on the hapijs/discuss repo.
Never noticed that repository before! Thanks for pointing it out :)
hueniverse
No branches or pull requests
I'm quite possibly taking the wrong approach here, but nevertheless I would rather ask.
I'm currently developing a small file upload module, and I would like to support uploads using
multipart/form-data
andapplication/json
.The simplest use case for my problem can be seen in this gist
However, it seems to fail to validate the
application/json
requests since a stream object is being sent to Joi, instead of the payload properties.Could you share your opinion about this?
Thanks
The text was updated successfully, but these errors were encountered: