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

Steffen Kamper steffen at dislabs.de
Sun Dec 3 23:42:06 CET 2006


"Matthias Stuebner" <news at stuebner.de> schrieb im Newsbeitrag 
news:mailman.1.1165178144.3333.typo3-dev at lists.netfielders.de...
> Hello group,
>
> in a BE module I write I select a file using:
>
> <input type="file" size="50" name="import_file" />
>
> which shows the path of that file then. But when I send this form I didn't
> find any way to read more than the filename. So how to get the full path?
>
> $filename = $_POST['import_file'];
> $filename = $_FILES['import_file']['name'];
>
> Both of the above return the name only, not the path.
>
> Could someone point to the right direction please?
> -- 
> br Matthias

are you sure that the form has the enctype="multipart/form-data" ?

vg  Steffen 






More information about the TYPO3-dev mailing list