FileField paths has a use case for accessing the properties of $file->original from in hook_file_presave(). Let's make it easy and provide an [entity:original] chained token for all entity types.

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new3.5 KB

Status: Needs review » Needs work

The last submitted patch, 1515776-entity-original-token.patch, failed testing.

dave reid’s picture

Status: Needs work » Needs review
StatusFileSize
new3.5 KB

Status: Needs review » Needs work

The last submitted patch, 1515776-entity-original-token.patch, failed testing.

dave reid’s picture

Status: Needs work » Needs review
StatusFileSize
new3.51 KB

This one looks like it will work.

dave reid’s picture

StatusFileSize
new3 KB
dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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