Hi

I have a multi-value imagefield attached to a CCK content type for the purpose of uploading photos. I would like to rename each incoming file as photoX.jpg, where X is a number that increases in sequence ( i.e. first photo is photo1.jpg, second is photo2.jpg etc.). Is there a token made available by this module to achieve this effect ?

Thanks for the great module and any assistance.

Cheers

Dave

Comments

deciphered’s picture

Category: support » feature

Hi,

Currently the closest thing to achieving what you want would be to use the filefield id token (which I can't remember off the top of my head).

I will mark this is a feature request as this is something I would like to implement, but I vaguely recall attempting this once upon a time and hitting a road block.

Cheers,
Deciphered.

izmeez’s picture

subscribe

easyRider’s picture

I have similiar problem
I configured to rename my fotos like this:
[field_photos-filefield-description][nid].[filefield-extension-original]

The problem is that is getting the description of the first photo.
Should get each photo description.
Example of uploading 2 photos:

Photo1 - Original filename: photo1.jpg
photo2 - Original filename: photo2.jpg

Uploading i created the following description to each photo:

Photo1 - Room photo
photo2 - Kitchen photo

I should get the following filenames
room-photo1.jpg
kitchen-photo1.jpg

but i get:
room-photo1.jpg
room-photo1_2.jpg

Can you help me please?

deciphered’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

No longer supporting Drupal 6 issues for this module.