That's what I'm using to see what's in them. They are empty, nothing nada. It's really baffling me. I've just fiddled with the upload directory setting to see if that had any effect. Nothing.
Using the simple "copy" script in the docs works, it's just that I can't do anything more secure using $_FILES.
<?php
if($userfile) {
$base = basename($userfile);
copy($userfile, "/tmp/$base"); echo "Successfully Added!<br>\n";
//$username : contains the name of TMP file, $usrfile_name : it's the real name of file
echo "<pre>\n";
print_r($_FILES);
echo "</pre>\n";
}
?>
<form action="<?php echo $PHP_SELF ?>" method="post" name="upload">
File to Upload: <input type=file name=userfile><BR>
<input type=submit value="Upload">
</form>