Hi
I would like to implement a solution to save the file names of folder names created in the filemanager backend module before they are "romanized" by Contao. My idea is to call an on_submit_callback where I would get the POST data and save them somewhere.
I added this line to system/config/dcaconfig.php :
$GLOBALS['TL_DCA']['tl_files']['config']['onsubmit_callback'] = array('myUpload','saveRealName');
and I created a file named myUpload.php which defines the myUpload class and the function saveRealName.
Of course it doesn't work (not called) but I don't know why: where should I put this class ? (Now it is in the system/modules/backend folder)
Thank you for your help
Aïda
Bookmarks