为什么在将文件上传到PHP时$_file是空的?
$_FILES
c:\wamp\tmp
php.ini
tmp
HTML:
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body> <form enctype="multipart/form-data" action="vanilla-upload.php" method="POST"> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </form></body></html>
PHP:
<?php echo 'file count=', count($_FILES),"\n";var_dump($_FILES);echo "\n";?>
慕侠2389804
慕村9548890