UNPKG

@aprilnea/nest-file-fastify

Version:

fastify-multipart decorators for Nest.js

12 lines (11 loc) 443 B
import { FastifyRequest } from "fastify"; import { UploadOptions } from "../options"; import { StorageFile } from "../../storage"; /** * Function to handle single file uploads in a multipart/form-data request */ export declare const handleMultipartSingleFile: (req: FastifyRequest, fieldName: string, options: UploadOptions) => Promise<{ body: Record<string, any>; file: StorageFile | undefined; remove: () => Promise<void>; }>;