Index: /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/config.asp
===================================================================
--- /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/config.asp	(revision 388)
+++ /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/config.asp	(revision 389)
@@ -29,7 +29,13 @@
 ConfigIsEnabled = False
 
+' @Packager.Remove.Start
+' Attention: In the development version (SVN) the ASP connector is enabled by default.
 ConfigIsEnabled = true
+' @Packager.Remove.End
+
 
 ' Path to user files relative to the document root.
+' This setting is preserved only for backward compatibility. 
+' You should look at the settings for each resource type to get the full potential
 Dim ConfigUserFilesPath
 ConfigUserFilesPath = "/userfiles/"
@@ -64,4 +70,12 @@
 '		Attention: It must start and end with a slash: '/'
 '
+'	- FileTypesAbsolutePath: the physical path to the above folder. It must be
+'		an absolute path. 
+'		If it's an empty string then it will be autocalculated.
+'		Usefull if you are using a virtual directory, symbolic link or alias. 
+'		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
+'		Attention: The above 'FileTypesPath' must point to the same directory.
+'		Attention: It must end with a slash: '/'
+'
 ' - QuickUploadPath: the virtual folder relative to the document root where
 '		these resources will be uploaded using the Upload tab in the resources 
@@ -69,30 +83,48 @@
 '		Attention: It must start and end with a slash: '/'
 '
+'	 - QuickUploadAbsolutePath: the physical path to the above folder. It must be
+'		an absolute path. 
+'		If it's an empty string then it will be autocalculated.
+'		Usefull if you are using a virtual directory, symbolic link or alias. 
+'		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
+'		Attention: The above 'QuickUploadPath' must point to the same directory.
+'		Attention: It must end with a slash: '/'
+'
 
-Dim ConfigAllowedExtensions, ConfigDeniedExtensions, ConfigFileTypesPath, ConfigQuickUploadPath
+Dim ConfigAllowedExtensions, ConfigDeniedExtensions, ConfigFileTypesPath, ConfigFileTypesAbsolutePath, ConfigQuickUploadPath, ConfigQuickUploadAbsolutePath
 Set ConfigAllowedExtensions	= CreateObject( "Scripting.Dictionary" )
 Set ConfigDeniedExtensions	= CreateObject( "Scripting.Dictionary" )
 Set ConfigFileTypesPath	= CreateObject( "Scripting.Dictionary" )
+Set ConfigFileTypesAbsolutePath	= CreateObject( "Scripting.Dictionary" )
 Set ConfigQuickUploadPath	= CreateObject( "Scripting.Dictionary" )
+Set ConfigQuickUploadAbsolutePath	= CreateObject( "Scripting.Dictionary" )
 
 ConfigAllowedExtensions.Add	"File", ""
 ConfigDeniedExtensions.Add	"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"
-ConfigFileTypesPath.Add "File", ConfigUserFilesPath & "file/"
+ConfigFileTypesPath.Add "File", "http://127.0.0.1/userfiles/file/"
+ConfigFileTypesAbsolutePath.Add "File", "d:\inetpub\wwwroot\docs\file\"
 ConfigQuickUploadPath.Add "File", ConfigUserFilesPath
+ConfigQuickUploadAbsolutePath.Add "File", ""
 
 ConfigAllowedExtensions.Add	"Image", "jpg|gif|jpeg|png|bmp"
 ConfigDeniedExtensions.Add	"Image", ""
-ConfigFileTypesPath.Add "Image", ConfigUserFilesPath & "image/"
+ConfigFileTypesPath.Add "Image", "http://127.0.0.1/userfiles/image/"
+ConfigFileTypesAbsolutePath.Add "Image", "d:\inetpub\wwwroot\docs\image\"
 ConfigQuickUploadPath.Add "Image", ConfigUserFilesPath
+ConfigQuickUploadAbsolutePath.Add "Image", ""
 
 ConfigAllowedExtensions.Add	"Flash", "swf|fla"
 ConfigDeniedExtensions.Add	"Flash", ""
 ConfigFileTypesPath.Add "Flash", ConfigUserFilesPath & "flash/"
+ConfigFileTypesAbsolutePath.Add "Flash", ""
 ConfigQuickUploadPath.Add "Flash", ConfigUserFilesPath
+ConfigQuickUploadAbsolutePath.Add "Flash", ""
 
 ConfigAllowedExtensions.Add	"Media", "swf|fla|jpg|gif|jpeg|png|avi|mpg|mpeg|mp(1-4)|wma|wmv|wav|mid|midi|rmi|rm|ram|rmvb|mov|qt"
 ConfigDeniedExtensions.Add	"Media", ""
 ConfigFileTypesPath.Add "Media", ConfigUserFilesPath & "media/"
+ConfigFileTypesAbsolutePath.Add "Media", ""
 ConfigQuickUploadPath.Add "Media", ConfigUserFilesPath
+ConfigQuickUploadAbsolutePath.Add "Media", ""
 
 %>
Index: /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/io.asp
===================================================================
--- /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/io.asp	(revision 388)
+++ /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/io.asp	(revision 389)
@@ -34,4 +34,23 @@
 end Function
 
+Function GetResourceTypeDirectory( resourceType, sCommand )
+	if ( sCommand = "QuickUpload") then
+
+		if ( ConfigQuickUploadAbsolutePath.Item( resourceType ) <> "" ) then
+			GetResourceTypeDirectory = ConfigQuickUploadAbsolutePath.Item( resourceType )
+		else
+			' Map the "UserFiles" path to a local directory.
+			GetResourceTypeDirectory = Server.MapPath( ConfigQuickUploadPath.Item( resourceType ) ) 
+		end if
+	else
+		if ( ConfigFileTypesAbsolutePath.Item( resourceType ) <> "" ) then 
+			GetResourceTypeDirectory = ConfigFileTypesAbsolutePath.Item( resourceType )
+		else
+			' Map the "UserFiles" path to a local directory.
+			GetResourceTypeDirectory = Server.MapPath( ConfigFileTypesPath.Item( resourceType ) ) 
+		end if
+	end if
+end Function
+
 Function GetUrlFromPath( resourceType, folderPath, sCommand )
 	GetUrlFromPath = CombinePaths( GetResourceTypePath( resourceType, sCommand ), folderPath )
@@ -43,7 +62,7 @@
 
 Function ServerMapFolder( resourceType, folderPath, sCommand )
-	' Map the "UserFiles" path to a local directory.
 	Dim sResourceTypePath
-	sResourceTypePath = Server.MapPath( GetResourceTypePath( resourceType, sCommand ) )
+	' Get the resource type directory.
+	sResourceTypePath = GetResourceTypeDirectory( resourceType, sCommand ) 
 
 	' Ensure that the directory exists.
