i have a PHP-script that uploads files. the $HTTP_POST_FILES - vars did'nt work - i got the temp-filename using a variable that's named like the upload-field-name.
and
my problem is, that i can't get the original-filename which i would need to save the file on the server...
how do i get it without using $HTTP_POST_FILES ??
thanks,
northk
this is $_FILES['userfile']['name']
but the temp name is in $_FILES['userfile']['tmp_name']
thanks!
$HTTP_POST_FILES['userfile']['name']
..did work (i'm working with PHP 4.0.6)
..though..
$HTTP_POST_FILES['userfile']['tmp_name']
..did not work.. STRANGE...?!
but i got the tmp_name with a variable called like the upload-field-name...