UNPKG

379 BTypeScriptView Raw
1/**
2 * Upload decorator parameters.
3 */
4export interface UploadOptions {
5 /**
6 * If set to true then uploaded file become required.
7 * If user performs a request and file is not in a request then routing-controllers will throw an error.
8 */
9 required?: boolean;
10 /**
11 * Special upload options passed to an upload middleware.
12 */
13 options?: any;
14}