Check documentation for the latest version of dhtmlxSuite onBeforeFileUpload DHTMLX Docs


fires before file uploading has started

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


    // your code here
    return true;


This API page is for Vault v2.5. Please go to to see API reference for the current version of dhtmlxVault.

Returning false will cancel the 'upload' operation.

See also
Back to top