I am using drupal 7.

I have created an Advertisement content type. This contains a field where end user can upload images of their Brands.

I want to rename the images which are uploaded by the field of content type and put in specific folder named user id of the user. So uploaded file location would look like it: /sites/default/files/images/user_id/

1 Answer 1


File (Field) Paths let you set file name and file path for file field:

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.