I just added an [entity:original] token support for entities that are being saved. I think this fully deprecates the [file:ffp-extension-original] token provided by this module since it gets the data from $file->original, which in turn is provided by file_save().

For reference: #1515776: Add a [entity:original] token that corresponds with $entity->original while the entity is being saved

Comments

deciphered’s picture

Sounds good, and I'll definitely have to look into it. The obvious issue I see straight up is that [file:ffp-extension-original] is the file extension, not the whole filename, whereas this new token sounds like it's the whole filename.

deciphered’s picture

Just caught the title and of course the token has extension down the chain :) Disregard last message, will give it a test and hopefully it should just work.

deciphered’s picture

Status: Active » Fixed

K, finally got to this, it doesn't look like it deprecates my tokens as my tokens are about the original file, when it was originally uploaded, which is stored in an additional column in the file_managed table, so no matter what the filename is changed to it can always go back to the original, whereas this looks like it's only from the last version of the file entity, not all the way back to the original version of the file.

Status: Fixed » Closed (fixed)

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