src/lib/model/upload-file-item.model.ts
Properties |
constructor(file: File)
|
||||||
Defined in src/lib/model/upload-file-item.model.ts:23
|
||||||
Creates a new instance of UploadFileItem
Parameters :
|
Public _file |
_file:
|
Type : File
|
Defined in src/lib/model/upload-file-item.model.ts:23
|
The File Item itself |
Public id |
id:
|
Type : string
|
Defined in src/lib/model/upload-file-item.model.ts:7
|
Uniqe File Item Id |
Public name |
name:
|
Type : string
|
Defined in src/lib/model/upload-file-item.model.ts:11
|
File Item name |
Public size |
size:
|
Type : number
|
Defined in src/lib/model/upload-file-item.model.ts:15
|
File Item Size |
Public type |
type:
|
Type : string
|
Defined in src/lib/model/upload-file-item.model.ts:19
|
File Item type |
import {Utils} from '../util/utils';
export class UploadFileItem {
/**
* Uniqe File Item Id
*/
public id: string;
/**
* File Item name
*/
public name: string;
/**
* File Item Size
*/
public size: number;
/**
* File Item type
*/
public type: string;
/**
* The File Item itself
*/
public _file: File;
/**
* Creates a new instance of UploadFileItem
*
* @param id Upload targets unique id
* @param type Upload targets type
*/
constructor(file: File) {
this.id = Utils.uuid();
this.name = file.name;
this.size = file.size;
this.type = file.type;
this._file = file;
}
}