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.