[TYPO3-english] file upload in FE

Stephen Bungert stephenbungert at yahoo.de
Tue Nov 22 15:28:34 CET 2011


Maybe it's the value attribute?

I made a FE file upload system for private "downloads" extension and you can 
upload upto 5 files... my upload fields differe from yours in that I don't 
set the value attribute.



"Stephen Bungert" <stephenbungert at yahoo.de> schrieb im Newsbeitrag 
news:mailman.1.1321968009.31198.typo3-english at lists.typo3.org...
> The inputs name is [data][photo] not ['data']['image']!
>
>
> "Leen Strijk" <leenstrijk at tomaatnet.nl> schrieb im Newsbeitrag 
> news:mailman.1.1321967779.30833.typo3-english at lists.typo3.org...
>> Hello,
>>
>> In my fe extension I want to upload a file.
>> But after submitting the piVars['data']['image'] gets lost somehow.
>> If I change the file upload into a normal text input it is showed again.
>>
>> source code in the browser:
>> <input type="file"
>> name="tx_myext_pi2[data][photo]"
>> id="tx_myext_pi2[data][photo]"
>> value="" />
>>
>> I think I am overlooking something small here but just can't find it.
>>
>> Anyone know what i am missing?
>>
>> regards Leen
>>
> 




More information about the TYPO3-english mailing list