41 return GeneralUtility::makeInstance(\
TYPO3\CMS\Core\Resource\Index\FileIndexRepository::class);
51 return GeneralUtility::makeInstance(\
TYPO3\CMS\Core\Resource\Index\MetaDataRepository::class);
61 return GeneralUtility::makeInstance(\
TYPO3\CMS\Core\Resource\ProcessedFileRepository::class);
72 if ($fileObject instanceof
File) {
79 GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable(
'sys_file_reference')
83 'uid_local' => (
int)$fileObject->getUid(),
84 'table_local' =>
'sys_file'
88 GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable(
'sys_file_processedfile')
90 'sys_file_processedfile',
92 'uid' => (
int)$fileObject->getUid()
129 $metaDataUid = $metadataProperties[
'_ORIG_uid'] ?? $metadataProperties[
'uid'];
131 GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable(
'sys_category_record_mm')
133 'sys_category_record_mm',
135 'uid_foreign' => (
int)$metaDataUid,
136 'tablenames' =>
'sys_file_metadata'
149 if (!$fileObject instanceof
File) {
155 if ($processedFile->exists()) {
156 $processedFile->delete(
true);