config = StructNew(); // SECURITY: You must explicitelly enable this "uploader". config.enabled = false; // Path to uploaded files relative to the document root. config.userFilesPath = "/userfiles/"; config.serverPath = ""; // use this to force the server path if FCKeditor is not running directly off the root of the application or the FCKeditor directory in the URL is a virtual directory or a symbolic link / junction config.allowedExtensions = StructNew(); config.deniedExtensions = StructNew(); config.allowedExtensions["File"] = ""; config.deniedExtensions["File"] = "html,htm,php,php2,php3,php4,php5,phtml,pwml,inc,asp,aspx,ascx,jsp,cfm,cfc,pl,bat,exe,com,dll,vbs,js,reg,cgi,htaccess,asis,sh,shtml,shtm,phtm"; config.allowedExtensions["Image"] = "png,gif,jpg,jpeg,bmp"; config.deniedExtensions["Image"] = ""; config.allowedExtensions["Flash"] = "swf,fla"; config.deniedExtensions["Flash"] = ""; function structCopyKeys(stFrom, stTo) { for ( key in stFrom ) { if ( isStruct(stFrom[key]) ) { structCopyKeys(stFrom[key],stTo[key]); } else { stTo[key] = stFrom[key]; } } } structCopyKeys(FCKeditor, config);