I have a multiple imagefield with already uploaded images. I have tried the dev version for changing their filenames using tokens. The filenames changed smoothly, but the files didn't end where they should.

In the imagefield I have an imagepath rule: [user]/images
I have added a filename rule: [author-name-raw]-[fid].[filefield_paths-ext]
And I have pressed the retroactive changes option.

The files have been renamed, but they have ended in the files directory, not in the files/user/images directory.

It seems retroactive changes only take into account filename changes, but ignore paths.

Comments

Deciphered’s picture

Farreres,

Thanks for the info, will test your scenario and see if I can reproduce the issue.

Cheers,
Deciphered.

Deciphered’s picture

Confirmed as an Issue, only occurs with ImageFields in Drupal 5.

Working on a fix.

Deciphered’s picture

Title: retroactive changes don't apply path tokens in imagefields » Directories not working with ImageField in D5.

Looks like this issue affects FileField Paths full stop, not just the retroactive changes functionality. Possibly related to a recent change in Imagefield?

Farreres’s picture

No idea. People working on imagefield should be contacted perhaps?

Deciphered’s picture

Na, she's right mate, turns out it may have been broken for a while now.
Figured out the source of the problem, just have to write the fix.

Farreres’s picture

Any news about the fix?

Deciphered’s picture

@Farreres

I'm flat out with other projects at the moment, but I assure you that I will do my best to get a fix committed in the next few days.

Deciphered’s picture

Status: Active » Fixed

Fixed and committed to DRUPAL-5.

You will need to re-set the path settings for the field as the issue was that it wasn't being stored.
Unfortunately the damage that has already been done will have to be fixed manually as the database entry for the files location is different to the true file location.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.