Version: 6.0.0-alpha.36.0.0-alpha.46.0.0-rc.16.0.06.0.16.0.26.0.36.0.46.0.56.1.06.1.16.2.0-next.16.2.0-next.26.2.06.2.16.2.26.2.36.2.46.3.0-next.16.3.06.3.16.3.26.4.06.4.16.5.06.5.16.5.26.5.36.6.06.6.16.6.26.6.36.6.46.6.56.6.66.6.76.7.06.7.16.7.26.8.06.8.16.8.26.8.36.8.46.8.56.9.06.10.06.10.16.10.26.10.36.10.46.10.56.10.66.10.76.10.86.10.96.10.106.10.116.10.126.10.136.10.146.11.0-next.16.11.06.11.16.11.26.11.36.11.46.11.56.11.66.11.76.11.86.11.96.11.106.11.117.0.0-rc.17.0.07.0.17.0.27.0.37.0.47.0.57.0.67.0.77.0.87.0.97.0.107.0.117.0.137.1.07.1.17.1.27.1.37.2.07.3.07.3.17.3.27.4.07.4.17.4.27.4.37.4.47.5.07.5.17.5.27.5.37.5.47.5.57.6.0-next.17.6.07.6.17.6.27.6.37.6.47.6.57.6.67.6.77.6.87.6.97.6.107.6.117.6.127.6.137.6.147.6.157.6.167.6.177.6.188.0.0-alpha.18.0.0-alpha.28.0.0-alpha.38.0.0-alpha.48.0.0-alpha.58.0.0-alpha.68.0.0-alpha.78.0.08.0.18.0.28.0.38.0.48.0.58.0.68.0.78.0.88.0.98.0.108.0.118.1.08.1.18.1.28.2.08.2.18.2.28.2.38.2.48.2.58.2.68.3.08.3.18.4.08.4.18.4.28.4.38.4.48.4.58.4.68.4.79.0.0-next.19.0.0-next.29.0.09.0.19.0.29.0.39.0.49.0.59.0.69.0.79.0.89.0.99.0.109.0.119.1.19.1.29.1.39.1.49.1.59.1.69.2.09.2.19.3.0-beta.19.3.0-beta.29.3.0-beta.39.3.09.3.19.3.29.3.39.3.49.3.59.3.69.3.79.3.89.3.99.3.109.3.119.3.129.4.09.4.19.4.29.4.310.0.010.0.110.0.210.0.310.0.410.0.510.1.010.1.110.1.210.1.310.2.010.2.110.2.210.2.310.2.410.2.510.2.610.2.710.2.810.2.910.2.1010.3.010.3.110.3.210.3.310.3.410.3.510.3.610.3.710.3.810.3.910.3.1010.4.010.4.110.4.210.4.310.4.410.4.510.4.610.4.7
/// <reference types="node" />
/**
* @see https://github.com/expressjs/multer
*/
export interface MulterOptions {
dest?: string;
/** The storage engine to use for uploaded files. */
storage?: any;
* An object specifying the size limits of the following optional properties. This object is passed to busboy
* directly, and the details of properties can be found on https://github.com/mscdex/busboy#busboy-methods
limits?: {
/** Max field name size (Default: 100 bytes) */
fieldNameSize?: number;
/** Max field value size (Default: 1MB) */
fieldSize?: number;
/** Max number of non- file fields (Default: Infinity) */
fields?: number;
/** For multipart forms, the max file size (in bytes)(Default: Infinity) */
fileSize?: number;
/** For multipart forms, the max number of file fields (Default: Infinity) */
files?: number;
/** For multipart forms, the max number of parts (fields + files)(Default: Infinity) */
parts?: number;
/** For multipart forms, the max number of header key=> value pairs to parse Default: 2000(same as node's http). */
headerPairs?: number;
};
/** Keep the full path of files instead of just the base name (Default: false) */
preservePath?: boolean;
fileFilter?(req: any, file: {
/** Field name specified in the form */
fieldname: string;
/** Name of the file on the user's computer */
originalname: string;
/** Encoding type of the file */
encoding: string;
/** Mime type of the file */
mimetype: string;
/** Size of the file in bytes */
size: number;
/** The folder to which the file has been saved (DiskStorage) */
destination: string;
/** The name of the file within the destination (DiskStorage) */
filename: string;
/** Location of the uploaded file (DiskStorage) */
path: string;
/** A Buffer of the entire file (MemoryStorage) */
buffer: Buffer;
}, callback: (error: Error | null, acceptFile: boolean) => void): void;
}
export interface MulterField {
/** The field name. */
name: string;
/** Optional maximum number of files per field to accept. */
maxCount?: number;