mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#Fixed bug after refactor
This commit is contained in:
@@ -86,7 +86,7 @@ export class UploadService {
|
||||
/**
|
||||
* The method create a new XMLHttpRequest instance if doesn't exist
|
||||
*/
|
||||
private _configureXMLHttpRequest() {
|
||||
private _configureXMLHttpRequest(uploadingFileModel: any) {
|
||||
if (this._xmlHttpRequest == undefined) {
|
||||
this._xmlHttpRequest = new XMLHttpRequest();
|
||||
this._xmlHttpRequest.upload.onprogress = (e) => {
|
||||
@@ -133,7 +133,7 @@ export class UploadService {
|
||||
form.append(key, this._formFields[key]);
|
||||
});
|
||||
|
||||
this._configureXMLHttpRequest();
|
||||
this._configureXMLHttpRequest(uploadingFileModel);
|
||||
uploadingFileModel.setXMLHttpRequest(this._xmlHttpRequest);
|
||||
|
||||
this._xmlHttpRequest.open(this._method, this._url, true);
|
||||
|
Reference in New Issue
Block a user