Check documentation for the latest version of dhtmlxSuite onBeforeFileRemove DHTMLX Docs

onBeforeFileRemove

fires before the user removes a single file from the list of files to upload (clicks the button )

void onBeforeFileRemove(string realName,string serverName);
realNamestringthe real name of the file (as it's displayed in the control)
serverNamestringthe file name that the server returns after uploading or null if the file hasn't been uploaded to the server

Example

myForm.attachEvent("onBeforeFileRemove", function(realName, serverName){
    if (!confirm("Are you sure you want to delete "+realName+"?")) return false;
    return true;
})

Details

returning false will cancel the 'remove' operation

Back to top