[TYPO3-dev] POST the path from a <input type="file">?

Steffen Kamper steffen at dislabs.de
Mon Dec 4 12:30:49 CET 2006


"Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im 
Newsbeitrag news:mailman.1.1165231304.3200.typo3-dev at lists.netfielders.de...
> Dmitry Dulepov schrieb:
>> Hi!
>>
>> Martin Kutschker wrote:
>>
>>> I think you can get the path or at least the file name via javascript 
>>> and post it in a hidden field. You'll have to find a way to clear the 
>>> upload field before submitting.
>>
>>
>> There were security restrictions on this... I do not remember details but 
>> I had real troubles getting (or setting???) anything from that file 
>> control :)
>
> Last time I checked I could read the file name. You cannot set the file 
> name though (for very good reasons).
>
> Masi

maybe do it like Masi told before:
in input file make a js that copies the path to a normal textfield.
onsubmit: clear the file input.

vg  Steffen 






More information about the TYPO3-dev mailing list