mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-26 22:29:31 +00:00
Fix use of FileUploader
This commit is contained in:
parent
84169a2c1e
commit
64f9631946
@ -143,7 +143,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
||||
this.qemuBinaries = binaries;
|
||||
});
|
||||
|
||||
this.uploader = new FileUploader({});
|
||||
this.uploader = new FileUploader({url: ''});
|
||||
this.uploader.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
};
|
||||
@ -162,7 +162,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
||||
this.getAppliance(item.url);
|
||||
};
|
||||
|
||||
this.uploaderImage = new FileUploader({});
|
||||
this.uploaderImage = new FileUploader({url: ''});
|
||||
this.uploaderImage.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user