Ticket #3772 (closed Bug: wontfix)

Opened 5 years ago

Last modified 23 months ago

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

Change History

comment:1 Changed 23 months ago by j.swiderski

  • Status changed from new to closed
  • Resolution set to wontfix

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy