#3772: Incomplete URL from perl connector ---------------------+------------------------------------------------------ Reporter: t.boje | Owner: Type: Bug | Status: new Priority: Normal | Milestone: Component: General | Version: FCKeditor 2.6.3 Keywords: | ---------------------+------------------------------------------------------ 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 -- Ticket URL: <http://dev.fckeditor.net/ticket/3772> FCKeditor <http://www.fckeditor.net/> The text editor for Internet ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ FCKeditor-Trac mailing list FCKeditor-Trac@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fckeditor-trac