FileUploadOptions
Options for file upload middleware
interface FileUploadOptions {
allowedMimeTypes?: string[];
enabled?: boolean;
fieldNames?: string[];
maxFiles?: number;
maxFileSize?: number;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
allowedMimeTypes | Optional | string[] | Allowed MIME types ["image/*", "application/pdf"] |
enabled | Optional | boolean | Whether file upload is enabled true |
fieldNames | Optional | string[] | Specific field names to accept [] |
maxFiles | Optional | number | Maximum number of files 5 |
maxFileSize | Optional | number | Maximum file size in bytes 5MB |