onBeforeUploadDialog

fires on the Upload action click, before the file dialog has opened

boolean onBeforeUploadDialog(string targetId){ ... };

Parameters

targetIdstringthe id of the folder where a new file will be uploaded

Returns

booleanreturning false will prevent opening the file dialog

Example

$$("fmanager").attachEvent("onBeforeUploadDialog",function(targetId){
    // your code
    return true;
});

See also
Back to top