Issue Bug Closed

#47414Missing filename on TCA type="group" internal_type="file_reference"

Alexander Kappler 04/21/13, 21:39 updated 10/02/18, 12:13

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.</p> <p>I have attached a sreenshot.</p> <p>My TCA config:</p> <p>_ ‘mp4_file’ => array(<br /> ‘exclude’ => 0,<br /> ‘label’ => ‘LLL:EXT:kss_client/Resources/Private/Language/locallang_db.xlf:tx_kssclient_domain_model_video.mp4_file’,<br /> ‘config’ => array(<br /> ‘type’ => ‘group’,<br /> ‘internal_type’ => ‘file_reference’,<br /> ‘uploadfolder’ => ‘fileadmin/user_upload/videos’,<br /> ‘allowed’ => ‘mp4,mov’,<br /> ‘size’ => 1,<br /> ‘maxitems’ => 1,<br /> ‘minitems’ => 0,<br /> ),<br /> ),_</p>"></option>

Reviews 4