title: Using move_uploaded_file in Magento Controller
body: <p>I am new to magento and i am Creating Custom module for File upload in magento admin. </p>
  
  <p>Right now i have post the upload file in my module controller. 
  Here i have used <code>move_uploaded_file</code> to upload file in same directory with in controller folder. 
  below code i have used for file upload in controller</p>
  
  <pre><code>$file_name=$_FILES["file"]["name"];
      $file_path="import/$file_name";
  
      if(move_uploaded_file($_FILES["file"]["tmp_name"],$file_path))
      {
          // my files not uploading 
      }
  </code></pre>
  
  <p>I can't able to upload the file in directory folder. </p>
  
  <p>So what i am doing wrong? or suggest me if using <code>move_uploaded_file</code> in magento controller is correct way to handle file upload ?</p>
  
  <p>Thanks.</p>