UNPKG

formflux

Version:

A package to upload files to a server and parsing multipart-formData requests

18 lines (17 loc) 810 B
import { Request } from "express"; import { options, optionSingle, reqObj } from "./FormFlux.Types"; import FormfluxError from "./FormFluxError"; declare class writeFileContent { private obj; private options; private req; private for; private storage; constructor(req: Request, obj: reqObj, options: options | optionSingle, forReason: "any" | "fields" | "single", storage: "memory" | "disk"); writeContent(): void; singleFile(count: number, metaData: string, content: Buffer, filesize: number, fieldname: string): void; callBackFilename(error: FormfluxError | null, fileName: string): void; callBackfilepath(error: FormfluxError | null, filepath: string): void; callBackFilter(error: FormfluxError | null, bool: boolean): boolean; } export default writeFileContent;