[Typo3] config: type=>"group", internal_type=> "file" ? how to get full path to file?
Kraft Bernhard
kraftb at gmx.net
Mon May 9 14:15:06 CEST 2005
René Schade wrote:
> Im working on an extension, one of my table-entries is an uploaded XML file.
>
> Using config: type=>"group", internal_type=> "file", sems almost to do the job, except for one thing. The selected file is not stored with the full path, only "filename.xml" is stored in the db.
>
> Part of my tca.php
> "xmlfile" => Array (
...
> "uploadfolder" => "uploads/tx_webnize",
...
> )
> ),
This is normal T3 behaviour. You will have to assemble the path in your extension like:
t3lib_div::loadTCA('tx_myext_table');
$myFile = PATH_site.$GLOBALS['TCA']['tx_myext_table']['columns']['xmlfile']['config']['uploadfolder'].'/'.$row['xmlfile'];
greets,
Bernhard
--
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50
More information about the TYPO3-english
mailing list