Uploader.send() only sends when there is one or more files attached.
Can we force the send with zero file ? i want that because i am using formData which cannot be sended while no file is added.
Thanks
Uploader.send() only sends when there is one or more files attached.
Can we force the send with zero file ? i want that because i am using formData which cannot be sended while no file is added.
Thanks
send() method requires a file to upload. I suggest using an additional sending method, e.g.:
webix.ajax("some.php", form.getValues());
Which will send all data from the form to the some.php script. If you need to send data by post request - it can be done like
webix.ajax().post("some.php", form.getValues());
how to send both binaries files and json object with the same connection ?
webix.ajax doesn’t provide such functionality.
To send binary data by ajax you need to use XHR2 and FormData API (native HTML5 API) which is not supported in the older versions of IE
If you are using webix.uploader, you can attach any arbitrary data to the file uploading calls.