README
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(
- more information: https://docs.nestjs.com/techniques/file-upload
Stay in touch
- Do you have any additional questions?
- Author: Backend Team Markus Schüttengruber
- Website: Web & Söhne