I would like to change the directory where images are uploaded to. I am using the default connector for ASP. The best solution for me would be to merge the upload directory for images, files and all other types. Is this possible?
Fri, 10/14/2005 - 02:29
#1

RE: Change Upload Directory for Images (ASP)
You have to edit the file io.asp in the folder editor/filemanager/browser/default/connectors/asp.
In this file you just set the variable resourceType to the value "File". This must be done in the following three functions: GetUrlFromPath, ServerMapFolder and IsAllowedExt.
I know that this is not very elegant, but now every filetype points to the sub-folder "File" in the upload directory.
Have fun!
RE: Change Upload Directory for Images (ASP)
I use the php connector, but I think the ASP solution is same.
check the FCKeditor\editor\filemanager\browser\default\connectors\php\io.php file.
$sResourceTypePath = $GLOBALS["UserFilesDirectory"] . $resourceType . '/' ;
There is the problem. I made this modify, if the type is image don't pust the /Image after the dir. Then I just set the dir to the userimages. I don't understan why we hade no official way to upgrade from the 1.x to 2.0.
if ($resourceType == "Image") {
$sResourceTypePath = $GLOBALS["UserFilesDirectory"] ;
} else {
$sResourceTypePath = $GLOBALS["UserFilesDirectory"] . $resourceType . '/' ;
};
RE: Change Upload Directory for Images (ASP)
http://sourceforge.net/tracker/index.ph ... tid=543655
RE: Change Upload Directory for Images (ASP)
http://www.aiwmedia.com/fckeditor.asp