Bug #47414
closedMissing filename on TCA type="group" internal_type="file_reference"
100%
Description
Hi,
I tried to use a single line TCA-Element from type="group" and internal_type="file_reference" for a backend form to select/upload videos.
Everything works like expected as long as I'm using internal_type="file", but with "file_reference", after saving the dataset, the selectbox doesn't show the filename anymore. So I had a look in the DOM and there, in the <option value="<path_to_my_file>" ></option> is the value for the file_reference but the filename between the <option></option> is missing... Therefore the user can't see if file is already selected or not.
I have attached a sreenshot.
My TCA config:
_ 'mp4_file' => array(
'exclude' => 0,
'label' => 'LLL:EXT:kss_client/Resources/Private/Language/locallang_db.xlf:tx_kssclient_domain_model_video.mp4_file',
'config' => array(
'type' => 'group',
'internal_type' => 'file_reference',
'uploadfolder' => 'fileadmin/user_upload/videos',
'allowed' => 'mp4,mov',
'size' => 1,
'maxitems' => 1,
'minitems' => 0,
),
),_
Files