We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

FCK Editor image upload not working

Development and Programming

slim's avatar
slim
2 posts
18 years ago
slim's avatar slim

I have installed FCK Editor. Everything is working fine except for the image upload. I’m trying to point the upload to the site/images directory. The FCK image properties window appears but I can’t see any files. If I browse for a local file and upload, it says file is uploading but nothing happens.

The FCK filemanager config.php reads as follows:

$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/images/' ;
$Config['UserFilesAbsolutePath'] = 'http://localhost/mysite/images/' ;

My custom config fckeditorcustom.js has the following:

FCKConfig.ImageBrowserURL =
'http://localhost/mysite/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php';
// Getting rid of unneccessary image upload functions
FCKConfig.ImageDlgHideLink = true;
FCKConfig.ImageUpload = false;
FCKConfig.ImageDlgHideAdvanced = true;

The frmresourceslist.html file as been modified as follows:

function OpenFile( fileUrl )
{
    var urlChange = 'http://localhost/mysite/'+fileUrl.toString();
    window.top.opener.SetUrl(urlChange) ;
//    window.top.opener.SetUrl( fileUrl ) 
    window.top.close() ;
    window.top.opener.focus() ;
}

The extension settings in EE are as follows:

var oFCKeditor = new FCKeditor(textAreaName);
oFCKeditor.BasePath = '../fckeditor/' ;
oFCKeditor.Config["CustomConfigurationsPath"]="http://localhost/mysite/fckeditorcustom.js";
oFCKeditor.ReplaceTextarea() ;

I’m also wondering if the /images folder access settings are denying access. I’m running Uniform Server as my test server under WinXp2.

Any assistance welcome.

Thanks and cheers

Slim

       
webmarcent's avatar
webmarcent
7 posts
15 years ago
webmarcent's avatar webmarcent

Hi,

I followed most of the instructions above and FCK works fine with 2 of my sites except 1, the latter loads FCK editor but cannot upload images via FCK. Now the only difference is that EE was installed on the root of the other two sites and this one with the problem EE is installed in a subdirectory. I dont use a custom .js file for all of my sites, my config.php:

$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/pages/images/' ;
$Config['UserFilesAbsolutePath'] = '' ;

my FCk config (inside EE):

var oFCKeditor = new FCKeditor(textAreaName);
//Configuration goes here

oFCKeditor.BasePath = '/pages/fckeditor/';
oFCKeditor.ReplaceTextarea()

now the error I get when I try to upload: [This file uploader is disabled. Please check the “editor/filemanager/connectors/php/config.php” file]

which if you refer to my config.php is already enabled, just so mind boggling this one.

       
jit2's avatar
jit2
14 posts
15 years ago
jit2's avatar jit2

Try adding the following line inside your FCK config (in EE) and see if you can get file uploads to work. This should directly call that php connector…(from the wiki…the link which was just updated)

oFCKConfig.LinkBrowserURL = 'http://sitename/fckeditor/editor/filemanager/browser/default/browser.html?[b]Type=File[/b]&Connector=connectors/php/connector.php';
       
webmarcent's avatar
webmarcent
7 posts
15 years ago
webmarcent's avatar webmarcent

Hi Thanks for that. When I put in this line you gave me the editor does not load, any ideas?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.