I am trying to get the full path of a file posted from a form. My php script is using the follwoing vars to handle the file information:
$_FILES['imageUpload']['name'] //filename only
$_FILES['imageUpload']['type']
$_FILES['imageUpload']['size']
I have been unable to retrieve the full path of the file in question. Is there any way to determine the path given $_FILE?
Thanks in advance!
--
Maximus
$_FILE does it provide full path of file?
Moderator: General Moderators
for its temporary location....
to copy it where you want it...
Code: Select all
$temp=$_FILESї'imageUpload']ї'tmp_name'];Code: Select all
$copy_path="whatever/".$_FILESї'imageUpload']ї'name'];
$doit=copy($_FILESї'imageUpload']ї'tmp_name'] , "$copy_path");