Upload field being sent blank

I’m using the following HTML to upload an image (and some other fields)


  <form action="action.php" method="post" enctype="multipart/form-data">
   <input type="text" name="title"> <br>
   <textarea name="description"></textarea><br>
   <input type="file" name="image"><br><br>
   <input type="submit" value="Upload" name="upload">
  </form>

Pretty basic, except for one thing. The “image” file upload is being sent blank. No file is being uploaded. Temp location doesn’t exist. $_POST[‘image’] comes up empty.

What gives?

$_POST is not the correct place to be looking for that data.

$_POST is not the correct place to be looking for that data.
Yes but $_FILES[‘image’][‘tmp_name’] is also blank.

What’s weird is that I’m using the same code to upload files elsewhere and it works. What can cause something like this to not work? Doctype is the same.

look in “error” http://www.php.net/manual/en/features.file-upload.errors.php

So you know how they say the best way to fix something is to show someone, and then it’ll work. Well that’s just what happened - for some reason, it’s fine now.

The error thing is good to keep in mind though. Thanks guys!