You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Bug report
[X] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
there are two interceptors FileInterceptor and FilesInterceptor based on multer.uploadSingle and multer.uploadArray. they allow uploading a single file, or multiple files with same field name. however if say there is a form with two different filed name to be uploaded. like "avatar" and "passport". currently there is not support for multer.fields which addresses this requirement.
Expected behavior
based on current implementation, I suggest adding a new interceptor for this behaviour to "@nestjs/common" like:
I'm submitting a...
[ ] Bug report
[X] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
there are two interceptors
FileInterceptor
andFilesInterceptor
based onmulter.uploadSingle
andmulter.uploadArray
. they allow uploading a single file, or multiple files with same field name. however if say there is a form with two different filed name to be uploaded. like "avatar" and "passport". currently there is not support formulter.fields
which addresses this requirement.Expected behavior
based on current implementation, I suggest adding a new interceptor for this behaviour to "@nestjs/common" like:
The text was updated successfully, but these errors were encountered: