Add rawFile in the file like object #649

Merged
gabskoro merged 1 commits from feature/file-like-object-with-raw-file into development 2017-10-07 09:07:52 +00:00
Showing only changes of commit e08f80ee74 - Show all commits

View File

@@ -7,8 +7,10 @@ export class FileLikeObject {
public size:any;
public type:string;
public name:string;
public rawFile:string;
public constructor(fileOrInput:any) {
this.rawFile = fileOrInput;
let isInput = isElement(fileOrInput);
let fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;
let postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';