Unable to change URL after instantiating FileUploader #293
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've instantiated FileUploader in this manner
However tried to change the upload URL later on but realised that
this.uploader.uploadAll()still uploads to the first URL.I've tried the code below and it doesn't work
Any help will be highly appreciated! Thanks!
Version
@valorkin Could you take a look at this?
Nevermind I managed to temporarily solve it.
Steps taken:
HTMLTypescriptReferences:
You can set url for each item to change the url :
for (var index = 0; index < this.uploader.queue.length; index++) {
var element = this.uploader.queue[index];
element.alias = "photo";
element.url = 'https://example-new-url.com/api/';
}
This is simpler.