Why would $_FILES be empty when uploading files to PHP?

geocqztywi

New Member
I have WampServer 2 installed on my Windows 7 computer. I'm using Apache 2.2.11 and PHP 5.2.11. When I attempt to upload any file from a form, it seems to upload, but in PHP, the $_FILES array is empty. There is no file in the c:\wamp\tmp folder. I have configured PHP.INI to allow file uploads and such. The tmp folder has read/write privileges for the current user. I'm stumped.\[code\]<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="http://stackoverflow.com/questions/3586919/Upload File" /></form></body></html>\[/code\]PHP:\[code\]<?phpecho 'file count=', count($_FILES),"\n";var_dump($_FILES);echo "\n";?>\[/code\]
 
Back
Top