-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add option to pass multer
options to Multipart uploads
#819
Comments
As I also have to consider the fastify case, supporting express-multer options are not easy problem. Will you suggest or send a PR that can make both express and fastify compatible? |
Hi @samchon I found this package https://www.npmjs.com/package/fastify-multer, which is a port of I think using this library would simplify it a bit. Let me know what you think |
Seems good. What about challenge a PR in here code? https://github.com/samchon/nestia/blob/master/packages/core/src/decorators/TypedFormData.ts |
Feature Request
Problem
Currently, @TypedFormData.Body() uses multer to read and store file uploads but it doesn't support passing options to the multer singleton.
I am trying to use DiskStorage to store uploads but multer uses MemoryStorage by default.
Additionally, the type of files within @TypedFormData.Body() is File, which hides a lot of the information in Express.Multer.File types and it's not supported in Node versions prior two 20.
Request
Thanks!
The text was updated successfully, but these errors were encountered: