Check documentation for the latest version 6.0 of dhtmlxSuite onBeforeFileAdd DHTMLX Docs

onBeforeFileAdd

fires when the user adds a file to the upload queue

void onBeforeFileAdd(string realName){ ... };

Parameters

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