I’d like to suggest an improvement to ‘Uploader’ control…
When uploading a file, I’d like to set some fields of my system…
I know that I can upload a file, return some id and reuse it with my desired fields, but by a design choice, I must do with a single post…
Using crome’s debug, I could inspect ‘send’ method and write an variant, but I can’t do the same with ‘minimized’ version of webix.
The core was something like that:
var item = sender.files.getItem(id);
var formData = new FormData();
formData.append("myField", "myValue"); // <-- this works for me!
formData.append(item.file.name, item.file);
Is it so hard to provide a way to append some info when uploading?
When you use the cycle for sending a form including images, it is important to be able to include parameter values AND have a callback function. Otherwise when sending the form you will never know when the uploading is finished.