hello,

I have problem from FCKEditor.

I want to upload file from FCK - but no publication in Drupal.

http://www.swos.pl/temp/fck_upload_error.jpg

ofcourse edit file
/modules/fckeditor/fckeditor/editor/filemanager/upload/php/config.php
in code

// SECURITY: You must explicitelly enable this "uploader".
$Config['Enabled'] = true ;
$Config['UseFileType'] = true ;
$Config['UserFilesPath'] = '/o/' ;
$Config['UserFilesAbsolutePath'] = '' ;
$Config['ForceSingleExtension'] = true ;

$Config['AllowedExtensions']['Image']	= array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image']	= array('bmp') ;

Comments

ontwerpwerk’s picture

Does the directory /o/ exist and is it writable by the webserver (user apache, www or httpd or something similar)
Maybe you must also enter the absolute path on the webserver..

Usually you have to disable the UserFilesPath as is specified in the readme.txt because FCKeditor will try to use the files directory that is used by drupal itself.

// SECURITY: You must explicitelly enable this "uploader".
$Config['Enabled'] = true ;
$Config['UseFileType'] = true ;
//$Config['UserFilesPath'] = '/o/' ;
$Config['UserFilesAbsolutePath'] = '' ;
$Config['ForceSingleExtension'] = true ;

$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = array('bmp') ;
Tomplus’s picture

Of course, /o/ is exist and chmod 0777.

Use:
1.

//$Config['UserFilesPath'] = '/o/' ; 
$Config['UserFilesAbsolutePath'] = '';

results:Invalid File Type

2.

$Config['UserFilesAbsolutePath'] = '/home/www/html/o/'; 

results:Invalid File Type

Ok. I don't know why show Error. If upload image, but problem is very simple.
befor

$Config['AllowedExtensions']['File']	= array('hil','diy','rpl','ses','tac','zip','7z','gz','bin','ttf') ;

after

$Config['AllowedExtensions']['File']	= array('hil','diy','rpl','ses','tac','zip','7z','gz','bin','ttf','png','jpg','gif','jpeg') ;