Add rawFile in the file like object #649
@@ -7,8 +7,10 @@ export class FileLikeObject {
|
|||||||
public size:any;
|
public size:any;
|
||||||
public type:string;
|
public type:string;
|
||||||
public name:string;
|
public name:string;
|
||||||
|
public rawFile:string;
|
||||||
|
|
||||||
public constructor(fileOrInput:any) {
|
public constructor(fileOrInput:any) {
|
||||||
|
this.rawFile = fileOrInput;
|
||||||
let isInput = isElement(fileOrInput);
|
let isInput = isElement(fileOrInput);
|
||||||
let fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;
|
let fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;
|
||||||
let postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';
|
let postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';
|
||||||
|
|||||||
Reference in New Issue
Block a user