getlarge / ticketing

Microservices example using NestJS, Kubernetes in Nx workspace
77 stars 16 forks source link

feat: create fastify upload lib #25

Closed getlarge closed 7 months ago

getlarge commented 7 months ago

Dealing with File Upload in NestJS is straightforward, as the official documentation shows. However, it differs when using Fastify adapter.

To remove the pain, one potentially good candidate developed by one of the NestJS core team members is @nest-lab/fastify-multer, but it depends on fastify-multer, which is abandoned and not maintained anymore.

Another one is nest-file-fastify, which depends on fastify-multipart, and the Fastify team maintains it. But nest-file-fastify is outdated and not maintained anymore.

Let's make a local fork of nest-file-fastify and update the fastify-multipart dependency to the latest version, so that we can add file upload/download endpoints to the tickets controller.