diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php
index 4a01535ce0ec91ab3c73883f1efc907b3f7b146e..9c44a383d6cdd84228bbfd806e08ae4e2964cd12 100644
--- a/apps/workflowengine/lib/Entity/File.php
+++ b/apps/workflowengine/lib/Entity/File.php
@@ -113,6 +113,7 @@ class File implements IEntity, IDisplayText {
 		try {
 			$node = $this->getNode();
 			$ruleMatcher->setEntitySubject($this, $node);
+			$ruleMatcher->setFileInfo($node->getStorage(), $node->getPath());
 		} catch (NotFoundException $e) {
 			// pass
 		}