Specifies the path for the Drupal imce module to store images.

Source: Internet
Author: User
Tags drupal
If you use imce in Drupal to upload images, by default, imce throws an image into the Directory Sites/default/files/U % UID (% uid indicates the user ID ).
It is not ideal to put images in this way. As the site creation time increases, the number of images will inevitably increase. It is difficult to manage images in a folder.
We can make certain settings in imce to customize the storage path.
From the Drupal Management User menu, choose administrater> site configuration> imce to edit the imce profile used by the user, as shown in:

Modify the directories attribute in profile to customize any favorite path to store images. For example, I use the followingCode:
PHP: Return 'u '. $ user-> uid. '/'. date ('y', $ user-> created ). '/'. date ('M', $ user-> created );

Imce will save the image in the following path when uploading the image:
Sites/default/files/U4/2009/07/

The image storage path varies with the upload time to facilitate management.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.