[TYPO3-english] fileupload in flexform

Leen Strijk leenstrijk at tomaatnet.nl
Tue Nov 15 22:13:40 CET 2011


yes This was what I was looking for.

Thank you.


On 13-11-2011 13:06, bernd wilke wrote:
> Am Sat, 12 Nov 2011 19:33:07 +0100 schrieb Leen Strijk:
>
>> Hello,
>>
>> I have a fileupload to upload a templ file. Normally they end up in
>> uploads/myextension/ but there is also the option to select a file that
>> has been uploaded to fileadmin/..../
>>
>> In my script I can get the file with this code. $altTemplateFile =
>> 'uploads/tx_jobboard/'.$this->lConf['altTemplateFile'].'';
>>
>> But you can imagine that it wont work when the file is in
>> fileadmin/..../
>>
>> My question is is it possible to get the stored folder with a function?
>>
>> something like : $altTemplateFile =
>> $this->functonName['folder'].'/'.$this->lConf['altTemplateFile']
>>
>> Or any other way to find the folder where the file is.
>>
>
> you can define the field with 'internal type' = 'file_reference' [¹]
> instead of 'file' [²].
> With 'file_reference' the full path is stored (but only the filename is
> shown in the BE :-( ) and you can select every folder instead of the fix
> path you have to define with internal_type = file.
>
>
>
> near the end (search for 'file_reference'):
> [¹] http://www.pi-phi.de/index.php?id=171 (green)
> [²] http://www.pi-phi.de/index.php?id=171 (blue)
>
> bernd



More information about the TYPO3-english mailing list