I'am searching for solution for adding metadata to a sys_file fileObject in TYPO3 Extbase.
I'am adding a file to the storage in this way:
$resourceFactory = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\ResourceFactory::class);
$storage = $resourceFactory->getDefaultStorage();
$fileObject = $storage->addFile(
$temporaryFile,
$storage->getFolder('some-folder/'),
$newfilename
);
And can manipulate a bunch of properties with updateProperties() like so:
$fileObject->updateProperties(array(
'name' => 'foo',
));
But how can I set further metadata properties in sys_file_metadata like title or alternative texts when I create the file? Is there a documentation out there, how to do this. I have only found this:
But this documentation contains no hints about metadata handling.