title: Php file upload from a fixed directory
body: <p>I want user must upload file from his/her <code>C</code> drive,they cant upload file from other drive.</p>
  
  <p>My upload code is here.</p>
  
  <pre><code>&lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;
  File: &lt;input type="file" name="filename" /&gt;
  &lt;input type="submit" value="Upload" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And</p>
  
  <pre><code>$file_name = $_FILES['fupload']['name'];
  
  $file_type = $_FILES['fupload']['type'];
  
  print "Path: ".$_FILES['fupload']['tmp_name']."&lt;br /&gt;";
  
  print "Name: $file_name &lt;br /&gt;";
  
  print "Size: ".$_FILES['fupload']['size']."&lt;br /&gt;";
  
  print "Type: $file_type &lt;br /&gt;";
  
  if(copy($_FILES['fupload']['tmp_name'], "$file_name"))
  {
      print "Upload Success";
  }
  else
  {
      print "Error occur";
  }
  </code></pre>