Skip to main content

uploadFile

fires when a file has been uploaded

uploadFile: (file: ISimpleVaultValue, value: ISimpleVaultValue[], 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.