﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3772	Incomplete URL from perl connector	t.boje		"Hello,

we're using the perl connector and had a problem with image uploads. 

When uploading directly in the insert image dialog the new image URL only contains the ""Image/filename.jpg"" part. However we configured the upload directory to be different from the webroot, so the relative URL resulted in a 404.

Using the file browser resulted in a correct URL (like ""/uploads/Image/filename.jpg""). After comparing the perl connector source and the php connector source, I introduced a quick hack into commands.pl:

 	SendUploadResults($sErrorNumber, $resourceType.$currentFolder.$sFileName, $sFileName, '');
became
 	SendUploadResults($sErrorNumber, $GLOBALS{'UserFilesPath'}.$resourceType.$currentFolder.$sFileName, $sFileName, '');

This solves the problem for us with no side effects so far - esp. uploading in the file browser still works. I'm not a perl programmer, though, so there may be a nicer/better/shorter solution.

Greetings,

   Thomas"	Bug	closed	Normal		General	FCKeditor 2.6.3	wontfix		
