Closed (fixed)
Project:
File (Field) Paths
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2012 at 02:21 UTC
Updated:
9 May 2013 at 03:50 UTC
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
Comment #1
decipheredSounds 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.
Comment #2
decipheredJust 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.
Comment #3
decipheredK, 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.