@webundsoehne/nest-fastify-file-upload

Port for nest's file upload for fastify adapter

Usage no npm install needed!

<script type="module">
  import webundsoehneNestFastifyFileUpload from 'https://cdn.skypack.dev/@webundsoehne/nest-fastify-file-upload';
</script>

README

Web und Söhne - Logo

Web & Söhne is Austrian's leading expert in programming and implementing complex and large web projects.

Port from Nest's File Upload for Fastify Adapter!

  • IMPORTANT: when initializing Fastify Adapter you have to register fastify-multer as well!

Steps:

yarn add @webundsoehne/nest-fastify-file-upload

import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { FastifyAdapter } from '@nestjs/platform-fastify';
import * as multer from 'fastify-multer';

async function bootstrap() {
  const fastifyAdapter = new FastifyAdapter();
  fastifyAdapter.register(multer.contentParser);

  const app = await NestFactory.create(AppModule, fastifyAdapter);
  await app.listen(3000);
}
bootstrap();


const fastifyAdapter = new FastifyAdapter()
fastifyAdapter.register(

Stay in touch