title: File not uploading PHP
body: <p>I've attempted to write code to have a file uploaded to a "media" folder in PHP. For some reason it continues to not work.</p>
  
  <p>Here's the execution code:</p>
  
  <pre><code>move_uploaded_file($_FILES["file"]["tmp_name"],"../media/" . $_FILES["file"]["name"]) or die ("Failure to upload content");
  </code></pre>
  
  <p>Here's my form code:</p>
  
  <pre><code>    &lt;input type="file" name="file" id="file" /&gt; 
  </code></pre>
  
  <p>Any ideas why it may not be working?</p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>When I use the command "print_r($_FILES);", it displays: </p>
  
  <blockquote>
    <p>Array ( [file] => Array ( [name] => Screen Shot 2012-05-29 at 12.36.11 PM.png [type] => image/png [tmp_name] => /Applications/MAMP/tmp/php/phpHNj3nW [error] => 0 [size] => 71640 ) ) </p>
  </blockquote>
  
  <p>Image is NOT uploaded into the folder.</p>