Hi,
I get this below error on click of Browse server in FCK editor while uploading image

Error creating folder "/home/[username]/public_html/userfiles/image/" (mkdir() [<a href='function.mkdir'>function.mkdir</a>]: Permission denied)

How do i get this fixed?

Comments

hutch’s picture

Imagepicker does not supply or configure FCKeditor in any way, it just tries to work with it whenever possible. I would suggest that you post this question in the issue queue for the module that supplies FCKeditor.
The cause of the error is bad file permissions, see
http://drupal.org/node/34023

hutch’s picture

Status: Active » Closed (fixed)
sibidiba’s picture

I ran into the same error with IMCE. It was resolved by configuring modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php and set the UserFilesAbsolutePath to the absolute path pointing to sites/default/files.

FCKEditor does not resolve the relative path correctly. First, why is it using a new, not yet created userfiles directory, when all Drupal installation already have a site-specific "files" directory writeable by the web server? Second, my web page was hosted at www.example.com/FOO, in /srv/www/bar. Instead of resolving the relative path to /srv/www/bar/userfiles, it was trying to write to /srv/www/FOO/userfiles !