beforeUploadFile
fires before file upload begins
beforeUploadFile: (value: object) => boolean | void;
Parameters:
value: object
- the current value of the control
Returns:
Return false
to cancel file uploading; otherwise, true
.
Example
form.getItem("avatar").events.on("beforeUploadFile", (value) => {
console.log("beforeUploadFile", value);
return true;
});