Project

General

Profile

Actions

Bug #47414

closed

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

Added by Alexander Kappler about 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2013-04-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

tca_group_file_reference.jpg (175 KB) tca_group_file_reference.jpg Alexander Kappler, 2013-04-21 21:39
2013-09-03-file_references.png (24.6 KB) 2013-09-03-file_references.png Philipp Gampe, 2013-09-03 00:32
Actions

Also available in: Atom PDF