Project

General

Profile

Actions

Task #85216

closed

EXT:form SaveToDatabase Finisher saves files as sys_file, not as sys_file_reference

Added by Lidia Demin over 6 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2018-06-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:
On Location Sprint

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?


Related issues 2 (2 open0 closed)

Related to TYPO3 Core - Bug #85772: EXT:form SaveToDatabaseFinisher cannot handle multi value fieldsNew2018-08-07

Actions
Copied to TYPO3 Core - Feature #85378: EXT:form option for saving uploaded file as sys_file_referenceNew2018-06-25

Actions
Actions

Also available in: Atom PDF