Check documentation for the latest version of dhtmlxSuite onBeforeFileAdd DHTMLX Docs

onBeforeFileAdd

fires when the user adds a file to the upload queue

void onBeforeFileAdd(string realName);
realNamestringthe real name of the file (as it's displayed in the control)

Example

myForm.attachEvent("onBeforeFileAdd",function(realName){
    // your code here
    return true;
});

Details

returning false will cancel the 'add' operation

Back to top