Opened 16 years ago
Closed 13 years ago
#3772 closed Bug (wontfix)
Incomplete URL from perl connector
Reported by: | t.boje | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | FCKeditor 2.6.3 |
Keywords: | Cc: |
Description
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
FCKeditor was retired and is no longer supported. All active development was moved to its successor, CKEditor 3.x. Perl connector is not supported anymore.