Skip to main content

uploadFile

fires when a file has been uploaded

uploadFile: (file: object, value: object[], extra?: { [key: string]: string }) => void;

Parameters:

  • file: object - the file object
  • value: array - the current value of the control
  • extra: 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.