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

aestigarribia’s picture

hi, 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"

no2e’s picture

Same 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

off’s picture

http://drupal.org/project/transliteration will solve a problem with "penélope picture 98.jpg"

B.P.B’s picture

The "filefield paths" module solves this issue and much more.

http://drupal.org/project/filefield_paths

quicksketch’s picture

Status: Active » Closed (fixed)

Thanks B.P.B, just what I would say.

francewhoa’s picture

Thanks 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.