title: upload file codeigniter
body: <p>hi i am trying to upload a file in codeigniter but some how the file is not being uploaded. Here is the code,</p>
  
  <pre><code>$config = array(
  
                     'file_name'     =&gt; 'user',
                     'max_size'      =&gt; 100,
                     'upload_path'   =&gt; realpath(APPPATH.'../files/'),
                                  );
  
  
  
  
                  $this-&gt;load-&gt;library('upload',$config);
  
                  $this-&gt;upload-&gt;do_upload();
  
  
                  $upload_data = $this-&gt;upload-&gt;data();
  </code></pre>
  
  <p>this is actually the code of a method in a model which i am calling through a controller method which in turn is a method i cll on form submit.</p>
  
  <p>the file reaches the method it shows uploading in the browser but when i see file name key of $upload_data it has user without extension and according to me there should be extension too right? . also when i try to print extension it shows nothing. BTW i am trying to upload  small 3gp file approx 770kbs taken on my mobile. There is nothing in files folder too. Thank you for your help</p>
  
  <p>Stilll nothing, please help.</p>
  
  <p>Checked for permissions</p>