fires before file uploading has started
mode | string | the mode in which uploader is used (read more about uploader modes here) |
loader | XMLHttpRequest | XMLHttpRequest object related to the data loading |
formData | object | optional, form config |
myForm.attachEvent("onBeforeFileUpload",function("html5",loader,formData){
// your code here
return true;
});
returning false will cancel the 'upload' operation
added in version 5.1
Back to top