diff --git a/ProcessMaker/Events/FilesCreated.php b/ProcessMaker/Events/FilesCreated.php index 6257786715..f3e84e065b 100644 --- a/ProcessMaker/Events/FilesCreated.php +++ b/ProcessMaker/Events/FilesCreated.php @@ -37,7 +37,7 @@ public function __construct(int $fileId, ProcessRequest $data) // Link to file in the package $this->name = [ 'label' => $this->media['name'], - 'link' => route('file-manager.index', ['public/' . $this->media['name']]), + 'link' => route('file-manager.index', ['public/' . $this->media['file_name']]), ]; } else { $this->processName = $data->getAttribute('name');