简体   繁体   English

如何在TYPO3 6.2中为文件ID设置sys_file_metadata中的元数据

[英]How to set metadata in sys_file_metadata for file id in TYPO3 6.2

I try to update the medatadata informations (EXIF) for images in a folder. 我尝试更新文件夹中图像的medatadata信息(EXIF)。 Via the StorageRepository I can read the metadata from file system. 通过StorageRepository,我可以从文件系统读取元数据。 I now want to put the recieved information into the TYPO3 database. 我现在想将收到的信息放入TYPO3数据库中。 I think I found the corresponding mysql table called sys_file_metadata where the informations are stored for each file id. 我想我找到了一个名为sys_file_metadata的对应mysql表,其中存储了每个文件ID的信息。

My question now is, if there are any functions or methods to put the recieved metadata into the database or do I have to put it in via a mysql query? 我的问题是,是否有将接收到的元数据放入数据库的功能或方法,还是必须通过mysql查询将其放入?

Just use the datahandler for this. 只需为此使用数据处理程序。 https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Typo3CoreEngine/UsingDataHandler/Index.html https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Typo3CoreEngine/UsingDataHandler/Index.html

And indeed it's stored in sys_file_metadata 实际上,它存储在sys_file_metadata

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM