src/app/classes/upload-file.ts
Upload file
Properties |
constructor(file: File)
|
||||||||
Defined in src/app/classes/upload-file.ts:13
|
||||||||
Constructor
Parameters :
|
file |
file:
|
Type : File
|
Defined in src/app/classes/upload-file.ts:7
|
File |
name |
name:
|
Type : string
|
Defined in src/app/classes/upload-file.ts:9
|
File name |
progress |
progress:
|
Type : number
|
Defined in src/app/classes/upload-file.ts:11
|
Upload progress |
url |
url:
|
Type : string
|
Defined in src/app/classes/upload-file.ts:13
|
File url |
export class Upload {
/** File */
file: File;
/** File name */
name: string;
/** Upload progress */
progress: number;
/** File url */
url: string;
/**
* Constructor
* @param {File} file File
*/
constructor(file: File) {
this.file = file;
this.name = file.name;
}
}