formData

extra data that will be sent to the server side along with the file uploading

object| function formData;

Example

// as an object
webix.ui({
    view:"uploader",
    formData:{
        userid:123,
        document:"attachment"
    }
});
 
// as a function
webix.ui({
    view:"uploader",
    formData:function(){
        return {
            userid:123,
            document:"attachment"
        };
    }
});

Details

The data will be added to the body of a POST request with the file data.

See also
Back to top