diff --git a/Classes/Hooks/FileReferenceRequiredFieldsHook.php b/Classes/Hooks/FileReferenceRequiredFieldsHook.php index f3e96e2..47a0b1d 100644 --- a/Classes/Hooks/FileReferenceRequiredFieldsHook.php +++ b/Classes/Hooks/FileReferenceRequiredFieldsHook.php @@ -195,7 +195,7 @@ private function detectSysFileMetadataRecord(mixed $field): ?array ['*'], 'sys_file_metadata', [ - 'uid' => $id, + 'file' => $id, ] ); $metaData = $result->fetchAssociative();