Closed (fixed)
Project:
ImageField
Version:
5.x-2.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2008 at 05:45 UTC
Updated:
30 Jun 2009 at 23:09 UTC
When I upload an image, is it possible to instruct imagefield to rename the file based on cck fields? ie. 203840393.jpg would become chicago-illinois-342.jpg , [city]-[state]-[nid].jpg
Also, is the same possible for writing alt and title tags? I'd rather imagefield automatically make those tags based on other CCK fields. Users are usually too lazy to fill them in and leave them blank.
Comments
Comment #1
aestigarribia commentedhi, do you find any solution to your problem?i have almost the same issue...i just want to rename any upload image because sometimes users upload some thing like "penélope picture 98.jpg"
Comment #2
no2e commentedSame here. I want to rename files automatically at upload.
Maybe http://drupal.org/project/filefield_paths is offering this feature, but it's still a dev and didn't get an answer at http://drupal.org/node/307502
Comment #3
off commentedhttp://drupal.org/project/transliteration will solve a problem with "penélope picture 98.jpg"
Comment #4
B.P.B commentedThe "filefield paths" module solves this issue and much more.
http://drupal.org/project/filefield_paths
Comment #5
quicksketchThanks B.P.B, just what I would say.
Comment #6
francewhoaThanks no2e filefield_paths module works for me.
http://drupal.org/project/filefield_paths
You can rename uploaded file to chicago-illinois-342.jpg , [city]-[state]-[nid].jpg
It's very powerful and flexible. And it's stable now for Drupal 6.