From bdc896651ebd8a0397f05f82769e92e272069e93 Mon Sep 17 00:00:00 2001 From: stonio Date: Mon, 2 Jan 2017 17:28:44 +0100 Subject: [PATCH] add maxFileSize --- jquery.fileupload/index.d.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/jquery.fileupload/index.d.ts b/jquery.fileupload/index.d.ts index f34325ad8b..8eba9853b2 100644 --- a/jquery.fileupload/index.d.ts +++ b/jquery.fileupload/index.d.ts @@ -213,6 +213,18 @@ interface JQueryFileInputOptions { progress?: (e: JQueryEventObject, data: JQueryFileUploadProgressObject) => void; send?: (e: JQueryEventObject, data: JQueryFileUploadProgressObject) => void; + // Validation + + /** + * The maximum allowed file size in bytes. + * Type: integer + * Default: undefined + * Example: 10000000 // 10 MB + * Note: This option has only an effect for browsers supporting the File API. + * @see https://github.com/blueimp/jQuery-File-Upload/wiki/Options#maxfilesize + */ + maxFileSize?: number; + // Other callbacks: submit?: Function; done?: (e: JQueryEventObject, data: JQueryFileUploadDone) => void; @@ -289,4 +301,4 @@ interface JQueryFileUploadProgressObject extends JQueryFileInputOptions, JQueryF } interface JQueryFileUploadDone extends JQueryFileInputOptions, JQueryFileUploadXhr { -} \ No newline at end of file +}