This question already has an answer here:
Yes, the enctype
attribute is set. Other forms/form-hanlders work fine so the temp directory must be writable. I'm out of Ideas.
I checked the post values and $_POST['file']
exists and contains the name of the file.
Here is my form and the PHP that handles it. What am I missing?
<form action='orl_ftp.php' method='post' enctype='multipart/form-data'> <table> <tr> <td>Choose File: </td> <td><INPUT type='file' id='file' name='file'></td> </tr> <tr> <td> </td> <td><INPUT type='submit' name='Submit' value='Process'></td> </tr> </table> </form>
And the relevant PHP code. Note that the $_FILES array is set, it's just empty.
if(isset($_POST['Submit'])){ $upload_results = ""; if(!isset($_FILES)){$upload_results .= "No files uploaded"; } if($upload_results == ""){ echo "<pre>"; var_dump($_FILES); exit; // ... } }