PHP: File upload always returning nothing
<p>Hey guys I'm working on a file uploader and I have come across a problem. In my code I am checking to see if a file has been selected via the file upload form, here is the form code:</p>

<pre><code>&lt;form method="post" action="actions/save.php?id=&lt;?print($id);?&gt;" enctype="multipart/form-data"&gt;
    Listing Photo: &lt;input type="file" name="file"/&gt;
    &lt;input class="add" type="submit" name="submit" value="Save"/&gt;
&lt;/form&gt;
</code></pre>

<p>The user selects the file to upload then clicks the "Save" button. Now in my uploading code i am trying to check if the file form has been set like this:</p>

<pre><code>$file = $_POST['file'];    
if(isset($file)) {
//Continue

} else {
//Go back    

}
</code></pre>

<p>Now my problem is that even if the file input is set (File selected) it goes to the "Go back" part of the code.</p>

<p>Any suggestions or a different way of checking?</p>

<p>Any help is appreciate, Thanks.</p>
