Hello,
I'm trying to get the below script working, adapted from the manual on
php.net. Although i am getting success file uploading, i do not see the file
in the tempoary area. And i'm not sure where to go as the server confirms
file uploaded successfully. Any help appreciated.
Thanks.
Dave.
<?php
if (count($_FILES))
{
var_dump($_FILES) ;
}
if (is_uploaded_file($_FILES['UploadFile']['tmp_name']))
{
print "<h3>File successfully uploaded.</h3>" ;
print "<a href=\"{$_SERVER['PHP_SELF']}\">Upload Another?<br>" ;
}
else
{
print <<< __HTMLFORM__
<form enctype="multipart/form-data" action="{$_SERVER['PHP_SELF']}"
method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="10290000">
Filename: <input name="UploadFile" type="file">
<input type="submit" value="upload">
</form>
__HTMLFORM__;
print "<br><a href=\"{$_SERVER['PHP_SELF']}\">Upload Another?<br>" ;
}
?>