IMCE uses profiles to define which users can utilize the various options of IMCE. The “User-1” profile is the administrator profile, and in this video we’ll configure it to our liking.
You’ll notice that the “Site maintenance account” is assigned the “User-1” profile. Let’s take a quick look at that profile before we configure the “Sample profile” for other users.
- Click “Edit” next to the “User-1” profile
I’m going to change this to “IMCE Admin”
Import settings from other profiles
You can use this to import settings from another profile as a starting point, but I won’t do that
Display file browser tab in user profile pages
If I head over to my user profile real quick, you’ll see that I have a “File browser” tab. And in that tab, I can see all of the files that I have access to. This can be useful in case you want to allow users to upload files without having to create content (ie: an article).
Maximum file size per upload
This setting will limit the size of each file that gets uploaded. (Set to “0” so there is no limit for this profile.)
This defines the maximum total size of each directory. (Set to “0” so there is no limit for this profile.)
Total user quota
This will set the maximum storage each user may use. (Set to “0” so there is no limit for this profile.)
Permitted file extensions
Here, you can specify which file types may be uploaded through IMCE.
Maximum image dimensions
This is the maximum allowed image size. Drupal 7 comes with the GD Image Toolkit, so images larger than this will be automatically scaled down to this size.
Maximum number of files per operation
This is the number of files that the user is allowed to perform an action on at a time. For example, if this is set to “2”, the user can only create thumbnails for two files at a time. If they try to do 3 or more, they will get a notice that says they can only perform actions on 2 files at a time.
In this section, you can specify one or more directory paths that the user has access to. By default, this profile grants access to “/.” (which means the root of the “files” directory. Usually, this is “sites/default/files”) This also includes subdirectories, since that is checked. And it grants permission to browse, upload, create thumbnails, delete and resize files in that directory (and subdirectories). Basically this grants all permissions to all files, regardless of where they are in the directory structure. We’ll take a look at how to restrict access for general users when we edit the “Sample profile”.
In this section, you can specify thumbnail sizes that are available to users of this IMCE profile.
- (Save configuration)