upload filename?
Posted: Sun Mar 16, 2003 5:47 am
I've managed to make a script that now that succesfully uploads a file to a desired destination
however i am having difficulty gettuing the file information, such filename etc, it always returns blank when i try the following:
$type = $_FILES['file']['type'];
or
echo $HTTP_POST_FILES[’userfile’][’tmp_name’];
or
echo '<pre>'; print_r($HTTP_POST_FILES); echo '</pre>';
doesnt print anything
however using this staement:
print_r($file);
print the tmp file, but thats as much as i can extrat?
I must be missing something
however i am having difficulty gettuing the file information, such filename etc, it always returns blank when i try the following:
$type = $_FILES['file']['type'];
or
echo $HTTP_POST_FILES[’userfile’][’tmp_name’];
or
echo '<pre>'; print_r($HTTP_POST_FILES); echo '</pre>';
doesnt print anything
however using this staement:
print_r($file);
print the tmp file, but thats as much as i can extrat?
I must be missing something