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.

Files: 
CommentFileSizeAuthor
#6 1515776-entity-original-token.patch3 KBDave Reid
PASSED: [[SimpleTest]]: [MySQL] 316 pass(es).
[ View ]
#5 1515776-entity-original-token.patch3.51 KBDave Reid
PASSED: [[SimpleTest]]: [MySQL] 310 pass(es).
[ View ]
#3 1515776-entity-original-token.patch3.5 KBDave Reid
FAILED: [[SimpleTest]]: [MySQL] 309 pass(es), 1 fail(s), and 2 exception(s).
[ View ]
#1 1515776-entity-original-token.patch3.5 KBDave Reid
FAILED: [[SimpleTest]]: [MySQL] 308 pass(es), 1 fail(s), and 0 exception(s).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new3.5 KB
FAILED: [[SimpleTest]]: [MySQL] 308 pass(es), 1 fail(s), and 0 exception(s).
[ View ]

Status:Needs review» Needs work

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

Status:Needs work» Needs review
StatusFileSize
new3.5 KB
FAILED: [[SimpleTest]]: [MySQL] 309 pass(es), 1 fail(s), and 2 exception(s).
[ View ]

Status:Needs review» Needs work

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

Status:Needs work» Needs review
StatusFileSize
new3.51 KB
PASSED: [[SimpleTest]]: [MySQL] 310 pass(es).
[ View ]

This one looks like it will work.

StatusFileSize
new3 KB
PASSED: [[SimpleTest]]: [MySQL] 316 pass(es).
[ View ]

Status:Needs review» Fixed

Status:Fixed» Closed (fixed)

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