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
Should be great have a feature like multer on express and handle multipart/form-data on readBody() hook.
The text was updated successfully, but these errors were encountered:
This is supported by H3, so this should work already.
export default eventHandler(async event => { const form = await readMultipartFormData(event) // do stuff })
Implemented here https://github.com/unjs/h3/blob/5f503c23286e431a249bf379b6bb779d62e71059/src/utils/body.ts#L111
Sorry, something went wrong.
Leaving this opens until this is documented.
@Hebilicious Is it possible to limit what file types can be uploaded and what is the max file size? I see there is a type property but no file size.
type
Also I wonder if this counts as the documentation or is it still missing? https://www.jsdocs.io/package/h3#readMultipartFormData
https://h3.unjs.io/utils/request#readmultipartformdataevent
No branches or pull requests
Describe the feature
Should be great have a feature like multer on express and handle multipart/form-data on readBody() hook.
Additional information
The text was updated successfully, but these errors were encountered: