[TYPO3-dev] move uploaded file with TCE
Peter Russ
peter.russ at 4many.net
Fri May 16 13:52:47 CEST 2008
--- Original Nachricht ---
Absender: stefano cecere
Datum: 16.05.2008 13:03:
> maybe a simple question, but there is not that much docs or examples
> around:
>
> i need to move an uploaded file in BE to a subdirectory of the TCA
> defined one. (i move the uplaoded files in dynamic created directories)
>
>
> i use a hook to processDatamap_afterDatabaseOperations
>
> and then i use this:
>
> $this->file = array();
> $this->file['move'][1]['data'] = $AttachmentPath.$filename;
> $this->file['move'][1]['target'] = $newAttachmentPath.$filename';
>
> $this->fileProcessor = t3lib_div::makeInstance('t3lib_extFileFunctions');
> $this->fileProcessor->init($FILEMOUNTS,
> $TYPO3_CONF_VARS['BE']['fileExtensions']);
> $this->fileProcessor->init_actionPerms($BE_USER->user['fileoper_perms']);
> $this->fileProcessor->start($this->file);
> $this->fileProcessor->processData();
>
>
> is it correct?
> (i get empty page.. with error in getting the class instantiated)
>
> ...
>
> stefano
class files included?
--
Fiat lux!
Docendo discimus.
_____________________________
4Many® Services
XING: http://www.xing.com/go/invuid/Peter_Russ
More information about the TYPO3-dev
mailing list