[FEATURE] Trigger metadata extraction after file upload
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_storage.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage',
5 'label' => 'name',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'default_sortby' => 'ORDER BY name',
10 'delete' => 'deleted',
11 'rootLevel' => TRUE,
12 'versioningWS_alwaysAllowLiveEdit' => TRUE, // Only have LIVE records of file storages
13 'enablecolumns' => array(),
14 'requestUpdate' => 'driver',
15 'iconfile' => '_icon_ftp.gif',
16 'searchFields' => 'name,description'
17 ),
18 'interface' => array(
19 'showRecordFieldList' => 'name,description,driver,processingfolder,configuration,auto_extract_metadata'
20 ),
21 'columns' => array(
22 'name' => array(
23 'exclude' => 0,
24 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.name',
25 'config' => array(
26 'type' => 'input',
27 'size' => '30',
28 'eval' => 'required'
29 )
30 ),
31 'description' => array(
32 'exclude' => 0,
33 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.description',
34 'config' => array(
35 'type' => 'text',
36 'cols' => '30',
37 'rows' => '5'
38 )
39 ),
40 'is_browsable' => array(
41 'exclude' => 0,
42 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_browsable',
43 'config' => array(
44 'type' => 'check',
45 'default' => 1
46 )
47 ),
48 'is_default' => array(
49 'exclude' => 0,
50 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_default',
51 'config' => array(
52 'type' => 'check',
53 'default' => 0,
54 'eval' => 'maximumRecordsChecked',
55 'validation' => array(
56 'maximumRecordsChecked' => 1
57 )
58 )
59 ),
60 'is_public' => array(
61 'exclude' => 0,
62 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_public',
63 'config' => array(
64 'default' => TRUE,
65 'type' => 'user',
66 'userFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserStorageCapabilityService.php:TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService->renderIsPublic',
67 )
68 ),
69 'is_writable' => array(
70 'exclude' => 0,
71 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_writable',
72 'config' => array(
73 'type' => 'check',
74 'default' => 1
75 )
76 ),
77 'is_online' => array(
78 'exclude' => 0,
79 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_online',
80 'config' => array(
81 'type' => 'check',
82 'default' => 1
83 )
84 ),
85 'auto_extract_metadata' => array(
86 'exclude' => 0,
87 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.auto_extract_metadata',
88 'config' => array(
89 'type' => 'check',
90 'default' => 1
91 )
92 ),
93 'processingfolder' => array(
94 'exclude' => 0,
95 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder',
96 'config' => array(
97 'type' => 'input',
98 'placeholder' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder.placeholder',
99 'size' => '20'
100 )
101 ),
102 'driver' => array(
103 'exclude' => 0,
104 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.driver',
105 'config' => array(
106 'type' => 'select',
107 'items' => array(),
108 'default' => 'Local',
109 'onChange' => 'reload'
110 )
111 ),
112 'configuration' => array(
113 'exclude' => 0,
114 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.configuration',
115 'config' => array(
116 'type' => 'flex',
117 'ds_pointerField' => 'driver',
118 'ds' => array()
119 ),
120 )
121 ),
122 'types' => array(
123 '0' => array('showitem' => 'name, description, --div--;Configuration, driver, configuration, is_default, auto_extract_metadata, processingfolder, --div--;Access, --palette--;Capabilities;capabilities, is_online')
124 ),
125 'palettes' => array(
126 'capabilities' => array(
127 'showitem' => 'is_browsable, is_public, is_writable',
128 ),
129 ),
130 );