- Issue created by @selvakumar
There is a mistake in the code. Specifically, the issue is with how the 'uri' value is assigned. Passing '$derivative_uri' as a string instead of using the actual variable value in the below file.
c2pa_sign/src/EventSubscriber/C2paSignSubscriber.php
// create a temporary fisle
$file = File::create([
'filename' => basename($derivative_uri),
'uri' => '$derivative_uri',
'status' => 1,
'uid' => 1,
]);
Solution : Incorrect Variable Usage:
'uri' => '$derivative_uri'
This treats $derivative_uri as a string instead of using the variable value.
Fixed by removing the single quotes: 'uri' => $derivative_uri
Active
1.4
Code