Bug #91183
closedFAL inline field in FlexForms does not add file
100%
Description
When you create a FlexForm with this field configuration for FAL:
<config> <type>inline</type> <foreign_table>sys_file_reference</foreign_table> <foreign_field>uid_foreign</foreign_field> <foreign_sortby>sorting_foreign</foreign_sortby> <foreign_table_field>tablenames</foreign_table_field> <foreign_match_fields> <fieldname>my_fieldname</fieldname> </foreign_match_fields> <foreign_label>uid_local</foreign_label> <foreign_selector>uid_local</foreign_selector> <overrideChildTca> <columns> <uid_local> <config> <appearance> <elementBrowserType>file</elementBrowserType> <elementBrowserAllowed>gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai,svg</elementBrowserAllowed> </appearance> </config> </uid_local> <types type="array"> <numIndex index="2"> <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem> </numIndex> </types> </columns> </overrideChildTca> <minitems>0</minitems> <maxitems>99</maxitems> <appearance> <useSortable>1</useSortable> <headerThumbnail> <field>uid_local</field> <width>45c</width> <height>45</height> </headerThumbnail> <enabledControls> <info>1</info> <dragdrop>1</dragdrop> <hide>1</hide> <new>0</new> <sort>0</sort> <delete>1</delete> </enabledControls> <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle> </appearance> <behaviour> <allowLanguageSynchronization>1</allowLanguageSynchronization> </behaviour> </config>
You get the buttons to add or upload a file. Also uploading files work. But when you select a file, it does not appear in inline list. No errors in JavaScript console. No errors in AJAX calls. Maybe my configuration is wrong, but I've basically used the one from pages->media.
Files
Updated by Raphael Zschorsch over 4 years ago
I can confirm this issue. Everything works fine, but the image is not added in backend after selecting it.
Updated by Andreas Kienast over 4 years ago
I cannot confirm this issue. I've put this Flexform configuration into inline_flex_1
of EXT:styleguide and everything works fine so far. Are you able to provide your TCA as well, especially for fieldname>my_fieldname</fieldname>
Updated by Andreas Kienast over 4 years ago
- Status changed from New to Needs Feedback
Updated by Armin Vieweg over 4 years ago
"my_fieldname" is not a TCA field. It's the name of the variable, you've defined in your DCE field. In the past, this worked properly.
Updated by Armin Vieweg over 4 years ago
- File Anmerkung 2020-04-27 134306.png Anmerkung 2020-04-27 134306.png added
- File Anmerkung 2020-04-27 134502.png Anmerkung 2020-04-27 134502.png added
Steps to reproduce:
1. Install EXT:news
2. Modify typo3conf\ext\news\Configuration\FlexForms\flexform_news.xml
and add a new field with the configuration above (e.g. "settings.test")
3. Put a news plugin anywhere you want and try to add or upload an image:
You will get the file picker, but after selecting a file, nothing happens.
In console, there is a JS issue, when opening the form (before selecting file):
Updated by Gerrit Code Review over 4 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64343
Updated by Andreas Fernandez over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 897f59f62ecd5bfa7ba56d069fb635487c816d84.
Updated by Anja Leichsenring over 4 years ago
- Related to Bug #91585: JavaScript-Error breaks Flexform IRRE elements added