Check documentation for the latest version of dhtmlxSuite onBeforeFileUpload DHTMLX Docs

onBeforeFileUpload

fires before file uploading has started

void onBeforeFileUpload(string mode,XMLHttpRequest loader, [object formData] );
modestringthe mode in which uploader is used (read more about uploader modes here)
loaderXMLHttpRequestXMLHttpRequest object related to the data loading
formDataobjectoptional, form config

Example

myForm.attachEvent("onBeforeFileUpload",function("html5",loader,formData){
    // your code here
    return true;
});

Details

returning false will cancel the 'upload' operation

See also
Change log

added in version 5.1

Back to top