[TYPO3-dev] POST the path from a <input type="file">?
Toke Herkild
th at concare.net
Tue Dec 5 13:36:48 CET 2006
Hi Matthias,
$_FILES is a PHP array containing the file info look at :
http://www.php.net/manual/en/features.file-upload.php
Regards,
Toke
-----Oprindelig meddelelse-----
Fra: typo3-dev-bounces at lists.netfielders.de [mailto:typo3-dev-bounces at lists.netfielders.de] På vegne af Matthias Stuebner
Sendt: 3. december 2006 21:36
Til: typo3-dev at lists.netfielders.de
Emne: [TYPO3-dev] POST the path from a <input type="file">?
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
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list