You are here

Add new profile

Status message

Settings were imported from the profile User-1
Give a name to this profile.

Import settings from other profiles: User-1, Sample profile

MB
Set to 0 to use the maximum value avaliable. Your PHP settings limit the maximum file size per upload to 2 MB.
MB
Define the upload quota per directory. Set to 0 to use the maximum value avaliable.
MB
This quota measures the size of all user uploaded files in the database and does not include FTP files. You can either use both quotations together or safely ignore this by setting the value to 0.
Specify the allowed file extensions for uploaded files. Separate extensions with a space and do not include the leading dot. Set to * to remove the restriction.
WIDTHxHEIGHT
The maximum allowed image size (e.g. 640x480). Set to 0 for no restriction. If an image toolkit is installed, files exceeding this value will be scaled down to fit.
You can allow users to select multiple files for operations such as delete, resize, etc. Entire batch file operation is executed in a single drupal load, which may be good. However there will be an increase in script execution time, cpu load and memory consumption possibly exceeding the limits of your server, which is really bad. For unlimited number of file handling, set this to 0.

Directories

Directory pathBrowseUploadThumbnailsDeleteResize
<root>/
<root>/
<root>/
Define directories that users of this profile can access.
  • Use alphanumeric characters as directory paths.
  • To specify file system root, just enter .(dot) character.
  • Use %uid as a placeholder for user ID. Ex: users/user%uid creates directories such as users/user1, users/user42, etc.
  • To remove a directory from the list, leave the directory path blank.
  • If you want more flexibility in directory paths you can execute php to return a directory path.
    For php execution your directory path must start with php: and the rest must be a valid php code that is expected to return the actual directory path.
    Ex: php: return 'users/'.$user->name; defines users/USER-NAME as the directory path.
    A multi-level directory example php: return date('Y', $user->created).'/'.date('m', $user->created).'/'.$user->uid; defines MEMBERSHIP-YEAR/MONTH/USER-ID as the directory path, resulting in self-categorized user directories based on membership date.
    Note that you should use the $user variable instead of $GLOBALS['user'] since they are not always the same object.

Note that thumbnails permission does not affect thumbnail creation on upload. See thumbnails decription below.

If you need more fields, just fill all and save, and you will get two more on the next page.

Thumbnails

NameDimensionsPrefixSuffix
You may create a list of thumbnail options that users can choose from.
  • Use alphanumeric characters as thumbnail names.
  • Specify dimensions as WidthxHeight.
  • Prefix and suffix are strings that are added to original file name to create the thumbnail name.
  • An example thumbnail: Name = Small, Dimensions = 80x80, Prefix = small_

Note that users will always be able to create these thumbnails on file upload no matter what the thumbnail permission is.

If you need more fields, just fill all and save, and you will get two more on the next page.