Check documentation for the latest version of dhtmlxSuite onBeforeFileRemove DHTMLX Docs


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


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


returning false will cancel the 'remove' operation

Back to top