uploadFile
fires when a file has been uploaded
uploadFile: (file: object, value: object[], extra?: { [key: string]: string }) => void;
Parameters:
file: object
- the file objectvalue: array
- the current value of the controlextra: any
- the server response
Example
form.getItem("simpleVault").events.on("uploadFile", function(file, value, extra) {
console.log("uploadFile", file, value, extra);
});
Change log:
The value and extra parameters are added in v7.0.