When looking for help about configuring the file browser (in a php web application) in the wiki site for FCKeditor I understand that the steps are the following:
1) Set the connector to use PHP (in fckconfig.js):
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
2) chmod 0777 the directory you want to upload to (insecure).
In my case the server root is /var/www, so my upload directory is /var/www/userfiles. I run "chmod 0777 /var/www/userfiles".
3) In /FCKeditor/editor/filemanager/browser/default/connectors/php/config.php and /FCKeditor/editor/filemanager/upload/php/config.php I enable the connector: $Config['Enabled'] = true ;
and set the name of the upload directory (uncommented by default):
$Config['UserFilesPath'] = '/userfiles/' ;
4) I create /userfiles/File, /userfiles/Flash, /userfiles/Image and /userfiles/Media and run "chmod 0777 /var/www/userfiles/*"
I run the test in /FCKeditor/editor/filemanager/upload/test.html and the image file I upload goes to /var/www/userfile (not to the subdirectory Image).
When I try to insert an Image, nothing happens, the upload directory remains empty.
Any help would be appreciated.
1) Set the connector to use PHP (in fckconfig.js):
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
2) chmod 0777 the directory you want to upload to (insecure).
In my case the server root is /var/www, so my upload directory is /var/www/userfiles. I run "chmod 0777 /var/www/userfiles".
3) In /FCKeditor/editor/filemanager/browser/default/connectors/php/config.php and /FCKeditor/editor/filemanager/upload/php/config.php I enable the connector: $Config['Enabled'] = true ;
and set the name of the upload directory (uncommented by default):
$Config['UserFilesPath'] = '/userfiles/' ;
4) I create /userfiles/File, /userfiles/Flash, /userfiles/Image and /userfiles/Media and run "chmod 0777 /var/www/userfiles/*"
I run the test in /FCKeditor/editor/filemanager/upload/test.html and the image file I upload goes to /var/www/userfile (not to the subdirectory Image).
When I try to insert an Image, nothing happens, the upload directory remains empty.
Any help would be appreciated.
RE: File Browser configuration trouble (2.4)
Set to "true":
$Config['UseFileType'] = true ;