Hi
I have made a module (fexplorer) which is a copy of the file manager backend module. My purpose is to make a little change that enables me to get the name of the submitted files before they are romanized. I can't find a way to do that. I've tried to call an onsubmit_callback (save_callback as well)) but it is not triggered I don't know why. This is what I've done in the dca :
Code:
$GLOBALS['TL_DCA']['tl_fexplorer'] = array
(
// Config
'config' => array
(
'dataContainer' => 'Folder',
'uploadScript' => 'fancyUpload',
'onload_callback' => array
(
array('Fexplorer', 'checkPermission'),
array('Fexplorer', 'addBreadcrumb')
),
'onsubmit_callback' => array('Fexplorer','saveRealName')
),
The hook "postUpload" is not useful since it is called at the end of the upload process when the file names are already romanized.
Please, can someone tell me how to access the posted data before they are processed by Contao ?
Thank you
Bookmarks