[BUGFIX] Set correct file extensions in ['SYS']['mediafile_ext']
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file',
5 'label' => 'name',
6 'tstamp' => 'tstamp',
7 'type' => 'type',
8 'hideTable' => TRUE,
9 'rootLevel' => TRUE,
10 'default_sortby' => 'ORDER BY name ASC',
11 'typeicon_column' => 'type',
12 'typeicon_classes' => array(
13 '1' => 'mimetypes-text-text',
14 '2' => 'mimetypes-media-image',
15 '3' => 'mimetypes-media-audio',
16 '4' => 'mimetypes-media-video',
17 '5' => 'mimetypes-application',
18 'default' => 'mimetypes-other-other'
19 ),
20 'security' => array(
21 'ignoreWebMountRestriction' => TRUE,
22 'ignoreRootLevelRestriction' => TRUE,
23 ),
24 'searchFields' => 'name, type, mime_type, sha1'
25 ),
26 'interface' => array(
27 'showRecordFieldList' => 'storage, name, type, mime_type, size, sha1, missing'
28 ),
29 'columns' => array(
30 'fileinfo' => array(
31 'config' => array(
32 'type' => 'user',
33 'userFunc' => 'typo3/sysext/core/Classes/Resource/Hook/FileInfoHook.php:TYPO3\CMS\Core\Resource\Hook\FileInfoHook->renderFileInfo'
34 )
35 ),
36 'storage' => array(
37 'exclude' => 0,
38 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.storage',
39 'config' => array(
40 'readOnly' => 1,
41 'type' => 'select',
42 'items' => array(
43 array('', 0)
44 ),
45 'foreign_table' => 'sys_file_storage',
46 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
47 'size' => 1,
48 'minitems' => 0,
49 'maxitems' => 1
50 )
51 ),
52 'identifier' => array(
53 'exclude' => 0,
54 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.identifier',
55 'config' => array(
56 'readOnly' => 1,
57 'type' => 'input',
58 'size' => '30'
59 )
60 ),
61 'name' => array(
62 'exclude' => 0,
63 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.name',
64 'config' => array(
65 'readOnly' => 1,
66 'type' => 'input',
67 'size' => '30',
68 'eval' => 'required',
69 )
70 ),
71 'type' => array(
72 'exclude' => 0,
73 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.type',
74 'config' => array(
75 'readOnly' => 1,
76 'type' => 'select',
77 'size' => '1',
78 'items' => array(
79 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.unknown', 0),
80 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.text', 1),
81 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.image', 2),
82 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.audio', 3),
83 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.video', 4),
84 array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.software', 5)
85 )
86 )
87 ),
88 'mime_type' => array(
89 'exclude' => 0,
90 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.mime_type',
91 'config' => array(
92 'readOnly' => 1,
93 'type' => 'input',
94 'size' => '30'
95 )
96 ),
97 'sha1' => array(
98 'exclude' => 0,
99 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.sha1',
100 'config' => array(
101 'readOnly' => 1,
102 'type' => 'input',
103 'size' => '30',
104 )
105 ),
106 'size' => array(
107 'exclude' => 0,
108 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.size',
109 'config' => array(
110 'readOnly' => 1,
111 'type' => 'input',
112 'size' => '8',
113 'max' => '30',
114 'eval' => 'int',
115 'default' => 0
116 )
117 ),
118 'missing' => array(
119 'exclude' => 0,
120 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.missing',
121 'config' => array(
122 'readOnly' => 1,
123 'type' => 'check',
124 'default' => 0
125 )
126 ),
127 'metadata' => array(
128 'exclude' => 0,
129 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.metadata',
130 'config' => array(
131 'readOnly' => 1,
132 'type' => 'inline',
133 'foreign_table' => 'sys_file_metadata',
134 'foreign_field' => 'file',
135 'size' => 1,
136 'minitems' => 1,
137 'maxitems' => 1,
138 )
139 )
140 ),
141 'types' => array(
142 '1' => array('showitem' => 'fileinfo, storage, missing')
143 ),
144 'palettes' => array()
145 );