suppose at a time I am uploading 5 files then how I can call upload event once(i.e. call to server).
Also I don’t want any button to call server url. https://snippet.webix.com/ts35l62i
Here my url is attachFiles.
For 10 files at a time I want to call attachFiles only once without ant extra button
webix.uploader sends one file per request, it is by design and can’t be changed.
If you want to send all files at once ( as a single ajax call ), you can use webix.ajax directly
var data = new FormData();
var i=0;
uploader.files.each(function(item){
data.append("file"+(i++), item.file, item.name)
});
webix.ajax().post("/some/server", data);
Suppose I am uploading 5 files at a time and I am using autoSend true.
In this case onAfterFileAdd is calling each time(here for 5 files 5 times it will get call). But there is one function abc() ,I need to call that function only once but in my code its calling 5 times.
how I can prevent this?
@intregal Thanks for reply but this solution is not working.
I can use this onUploadComplete event but this event is triggering only once.
I am giving “status”:“serve” in response still not triggering.
I don’t understand what to do.