UNPKG

@nestjs/platform-fastify

Version:

Nest - modern, fast, powerful node.js web framework (@platform-fastify)

14 lines (13 loc) • 517 B
import { createMultipartInterceptor } from '../multipart/multipart-interceptor.factory.js'; /** * Accepts every file, in any field, and exposes them as an array in * `req.files` (`@UploadedFiles()`). The Fastify counterpart of * platform-express's `AnyFilesInterceptor`. * * @param localOptions options merged over the `MultipartModule` defaults * * @publicApi */ export function AnyFilesInterceptor(localOptions) { return createMultipartInterceptor({ fields: 'ANY', strategy: 'ARRAY' }, localOptions); }