mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #13681 from stonio/patch-4
[jquery.fileupload] Add option maxFileSize
This commit is contained in:
Vendored
+13
-1
@@ -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 {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user