Via Tweets

Configure Fckeditor

Uploading Files

To upload files to the server you will also need to:

  1. chmod 0777 the directory you want to upload to (insecure).
    NOTE: It is advisable to change the group ownership of the directory to the same user as apache and add group write permisions instead.
  2. In the connector configuration file (editor/filemanger/connectors/php/config.php) set $Config['Enabled'] to true.
    NOTE
    : this is highly insecure unless you have protected the access to this directory with some kind of authentication. You can use session variables to avoid this problem.
  3. Set in $Config['UserFilesPath'] the url relative to the web site root where the files will be stored and retrieved from the web. For example "/userfiles/" if the files are supposed to be saved and retrieved from "http://www.example.com/userfiles/".
  4. You can use the UserFilesAbsolutePath setting to specify the local path for the folder where the files will be stored, and then in UserFilesPath you can use an absolute url like "http://www.example.com/myfiles/"

Returning Full URLs

You can configure the File Browser to return full URLs to FCKeditor, like "http://www.example.com/userfiles/", instead of absolute URLs, like "/userfiles/". To do that, you must configure the connector, combining the UserFilesPath and UserFilesAbsolutePath settings:

  • UserFilesPath: include here the full URL for the user files directory. For example, set it to "http://www.example.com/userfiles/".
  • UserFilesAbsolutePath: include here the server path to reach the above URL directory. For example, in a Windows environment, you could have something like "C:/inetpub/mysite/userfiles/", while on Linux, something like "/usr/me/public_html/mysite/userfiles/".

Just adjust the above settings to your installation values and the File Browser will start returning full URLs to the editor.

Allow and deny extensions settings for filetypes

In editor/filemanager/connectors/(your server side language extension)/config.(extension) you can configure what extensions are allowed or denied for specific filetypes.

The filetypes you can configure are:

  • Files, e.g. : 'htm', 'html', 'php', 'php3', 'php5', 'phtml', 'asp', 'aspx', 'ascx', 'jsp', 'cfm', 'cfc', 'pl', 'bat', 'exe', 'dll', 'reg', 'cgi', 'asmx'
  • Images, e.g. : 'jpg', 'gif', 'jpeg', 'png'
  • Flash, e.g. : 'swf'
  • Media, e.g. : 'swf', 'fla', 'jpg', 'gif', 'jpeg', 'png', 'avi', 'mpg', 'mpeg'

Denying extensions will show all files except for the ones with the specified extensions, while allowing extensions will show no files except for the ones with the specified extensions. To allow all extensions for a filetype, leave both of the arrays empty for that filetype.