1 import {FileItem} from "ng2-file-upload";
3 export class UploadFilesLinkModel {
6 /*********************************************************************
7 Implement success method - run after uploadMethod return true result
8 **********************************************************************/
9 onSuccess?: (...args) => void;
11 /*********************************************************************
12 Implement failed method - run after uploadMethod return false result
13 **********************************************************************/
14 onFailed?: (...args) => void;
16 /*********************************************************************************
17 Implement upload method and return the upload result status (false/true)
18 *********************************************************************************/
19 uploadMethod: (file: FileItem[], ...args) => Promise<boolean>;
21 /********************************
22 Should upload file be disabled
23 ********************************/
24 isDisabled?: (...args) => boolean;
26 /********************************
28 ********************************/