Hi,
I have just used the upload function for the first time.
Everything works fine. The file will upload to the server in the correct folder, no problem.
However, If I then try to view the uploaded file through my browser I get a 403 Forbidden message.
I can view other files in the same folder, but not the uploaded file.
I am wondering if it has something to do with tmp_name.
again, the code does do the actual upload. So I assume it's ok as is.
<?php
$uploadDir = 'upload_folder/';
$uploadFile = $uploadDir . $FILES['userfile']['name'];
echo "<pre>";
if (move_uploaded_file($FILES['userfile']['tmp_name'], $uploadFile))
{
print "Well Done! File Upload Successful";
print_r($_FILES);
}
else
{
print "File did not upload";
}
echo "</pre>";
?>
Hum! Opinions Appreciated ... :0)
Capa'D