@nest-lab/fastify-multer
v1.2.0
Published
A File Upload package for NestJS when using fastify
Downloads
44,481
Readme
@nest-lab/fastify-multer
Support for File Uploads when using the @nestjs/platform-fastify
adapter, using the fastify-multer
library.
Installation
Simple install,
npm i @nest-lab/fastify-multer
yarn add @nest-lab/fastify-multer
pnpm i @nest-lab/fastify-multer
Usage
Use this exactly like you would the MulterModule
from @nestjs/platform-express
. The only difference is there is also a NoFilesInterceptor
for when you jsut want to parse multipart/form-data
and you must have FastifyMulterModule
imported somewhere so that the multipart/form-data
content parser gets registered with fastify.