|
@@ -400,6 +400,11 @@ class FileLoader {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Returns file data of a file that was already read. To read the file use {@link module:upload/filerepository~FileLoader#read} method.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @type {File|undefined}
|
|
|
|
|
+ */
|
|
|
get data() {
|
|
get data() {
|
|
|
return this._reader.data;
|
|
return this._reader.data;
|
|
|
}
|
|
}
|
|
@@ -437,8 +442,6 @@ class FileLoader {
|
|
|
.then( data => {
|
|
.then( data => {
|
|
|
this.status = 'idle';
|
|
this.status = 'idle';
|
|
|
|
|
|
|
|
- this._data = data;
|
|
|
|
|
-
|
|
|
|
|
return data;
|
|
return data;
|
|
|
} )
|
|
} )
|
|
|
.catch( err => {
|
|
.catch( err => {
|
|
@@ -527,7 +530,6 @@ class FileLoader {
|
|
|
this._filePromiseWrapper = undefined;
|
|
this._filePromiseWrapper = undefined;
|
|
|
this._reader = undefined;
|
|
this._reader = undefined;
|
|
|
this._adapter = undefined;
|
|
this._adapter = undefined;
|
|
|
- this._data = undefined;
|
|
|
|
|
this.uploadResponse = undefined;
|
|
this.uploadResponse = undefined;
|
|
|
}
|
|
}
|
|
|
|
|
|