#85216EXT:form SaveToDatabase Finisher saves files as sys_file, not as sys_file_reference
Description
*Use case:*
I have a model with file properies (logo) that can be filled by a form, but should also be editable via backend.
Form field configuration:
-
identifier: logo
type: ImageUpload
saveToFileMount: '1:/user_upload/myfolder/'
Finisher configuration:
finishers:
-
identifier: SaveToDatabase
options:
table: 'tx_myext_domain_model_mymodel'
mode: 'insert'
elements:
logo:
mapOnDatabaseColumn: 'logo'
My model used to have a TCA configuration for FAL using \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig. But that doesn’t work with the form, because the finisher only creates a sys_file entry, so sys_file_reference. Why?
My current solution was to adjust my TCA and templates. But it just doesn’t seem right not being able to use the advantages of FAL. Or am I missing some configuration?
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.