We will use IMCE as a file browser for uploading and inserting files in the wysiwyg editor. This video shows the installation process and basic configuration of IMCE.

Now, we get the the file browser settings. We’ll be installing IMCE for our file browser. Before I install it and configure it, I’ll go ahead and save this page so that I don’t lose any configuration.

Now, let’s install IMCE.

Transliteration has just a couple of configuration options, so let’s take a quick look at those.

  • Go to “Configuration => Media => File system”
    • Make sure “Transliterate file names during upload” and “Lowercase transliterated file names” are checked.
  • Click the “Transliteration” tab.
    • If there are any files already uploaded to the site, you can transliterate them here. Be careful though, because if you’ve linked to a file in text areas or through the wysiwyg, renaming the files can break those links. Just be sure you know what you’re doing, and always backup your database and files directory beforehand so that you can roll back any unwanted changes.

Now, let’s configure IMCE

  • Go to “Configuration => Media => IMCE”

Here you can see two default profiles that come with IMCE, and which roles have access to the profiles. Before we configure these profiles, let’s take a look at the “Common Settings” section at the bottom of the page.

Enable inline image/file insertion into plain textareas

This allows you to embed images and files in plain textareas if you’re not using a wysiwyg editor. Since we are using CKEditor, we can skip this option.

Absolute URLs

We can ignore this option because we’re going to install Pathologic to do this for us in the “Linkit” videos.

Default behaviour for existing files during file uploads

This settings tells IMCE what to do when you upload a file with the same name as an existing file. The default will leave the existing file alone, and rename the new file. The second option would simply reject the new file, and not allow it to be uploaded. The third option would replace the existing file with the new one.

Each site will have different requirements, and you’ll have to decide what is best for your site. The first option may result in duplicate files (ie: if the file “file.txt” is uploaded multiple times, you could have file.txt, file_0.txt and file_1.txt all on your site, even though they are the same file). The last option could allow users to replace a file on accident, just because it has the same file name, but If it’s an update to the existing document, this may be what you want.

Again, you’ll have to make that decision for your site.

Default method for creating thumbnails

Here you have the option to just scale the image to fit, or to scale the image, and then crop it to fit the dimentions.

Disable serving of private files

IMCE doesn’t apply access restrictions to files in the private files directory. Having this enabled will prevent private files from accidentally being made public. If however, you’re controlling access to files through another module, you can disable this, and allow private files to be selected in IMCE, and be protected by the other module.

  • (Save configuration)