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

Matthias Stuebner news at stuebner.de
Sun Dec 3 21:35:44 CET 2006


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




More information about the TYPO3-dev mailing list