Page 1 of 1
Uploading images issue
Posted: Wed Sep 12, 2007 7:07 pm
by nickbrewer
Upgraded to the newest version of FCKeditorX.
Now when i upload images to the server it says that it uploads them fine, but they are not there. If i navigate to the physical folder on the server... it's not there either.
It just puts a box with an x in it in the image place.
Any help would be great.
Thanks.
Re: Uploading images issue
Posted: Wed Sep 12, 2007 7:10 pm
by RonnyK
Is your umask in global settings set to 002? Before uploading this should be 002 to have the proper permissions.
Ronny
Re: Uploading images issue
Posted: Thu Sep 13, 2007 11:31 am
by nickbrewer
umask was set to 022. changed it to 002 and it is still not working.
any other ideas?
thanks so much.
Re: Uploading images issue
Posted: Thu Sep 13, 2007 1:47 pm
by chrisl
It will depend on how new the version but if it is 2.4.3 have you tried adding
Code: Select all
require_once(dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))))))) . '/include.php');
check_login();
(you will have to check directory depths)
to the top of
\FCKeditorX\FCKeditor\editor\filemanager\browser\default\connectors\php\connector.php
and changing the config.php file in the same directory to
Code: Select all
$Config['UserFilesPath'] = '/uploads/';
$Config['UserFilesAbsolutePath'] = $config['uploads_path'].'/' ;
FCK developers are very active currently and there are changes to the browser directory structures, I think after 2.4.3, so if you have downloaded a later version you will have to make some more adjustments to the CMSMS module. In all events there is a very useful test.html for file paths in the FCK browser/connector directory.
Re: Uploading images issue
Posted: Tue Nov 13, 2007 3:27 pm
by banana
I'm having the same problem
Using the FCKEditor i cannot upload images or browse files. It says uploaded but the i just get a image holder.
Using the Image Manager, i can upload images so it's not a permisisons thing but i can't link to the images using fckeditor.
The default url is also set to /image.jpg hence the Red cross, it should be uploads/images/image.jpg
my config.php already has this in it:
$Config['UserFilesPath'] = $config['uploads_url'] ;
$Config['UserFilesAbsolutePath'] = $config['uploads_path'].'/' ;
It's a Windows server btw. any ideas?
Re: Uploading images issue
Posted: Tue Nov 13, 2007 3:33 pm
by streever
windows uses different permissions structure than linux/unix, so it is hard to say...
Re: Uploading images issue
Posted: Tue Nov 13, 2007 4:35 pm
by banana
I figured out it has to do with the paths. I got the Image uplaoder working but not the directory browser yet. It gives a javascript error object required or something.
It seems the main config.php is not included so the variable don't get inherited.
I'll figure it out!