Forum Moderators: coopster
my file is stored in variable $_FILES[$fieldname].
how can I take the type (for example .jpeg,.gif,...), the name and the size of the image ?
$_FILES[$fieldname][name]
gives as result all
And another question.
I want to pass the variable in an another php file (success_upload_image.php) using header function.
header('Location: ' . $uploadSuccess?file='what I have to write here...');
And in the other file how can I call the file ?
Thanks a lot for your help
for your second question: since you have alredy upload your photo, all you have to use is the name of it
for example: header('Location: some_page.php?file='.$_FILES[$fieldname]['name']);
In your trget page you $_GET your image name and procceed with your script