title: CodeIgniter uploading files
body: <p>I am strugling to upload files with codeIgniter. Something i am doing wrong, can some one explain to me file premision, and how to change it on windows. Should i set only to folder where i upload files or to also patent folders. My code is in form</p>
  
  <pre><code>&lt;div id="contact_box"&gt;
      &lt;form id="form" enctype="multipart/form-data" name="form" action="&lt;?php echo site_url('admin/clients/add_client');?&gt;"  method="post" &gt;
           Client Name: &lt;/br&gt;&lt;input type="text" name="name" id="name"/&gt; &lt;/br&gt;&lt;/br&gt;
           LOgo: &lt;input type="file" name="file" id="file"/&gt; &lt;/br&gt;&lt;/br&gt;
  
           &lt;input type="submit"/&gt;
      &lt;/form&gt;    
  &lt;/div&gt;
  </code></pre>
  
  <p>and controller </p>
  
  <pre><code>$this-&gt;load-&gt;library('upload');
  $config['upload_path'] = './att/';
  $config['allowed_types'] = 'png|jpg|bmp';
  $this-&gt;upload-&gt;initialize($config);
  $upload = $this-&gt;upload-&gt;do_upload();
  </code></pre>
  
  <p>i dont know what i am doing wrong
  Should i ajdust htaccess file?</p>
  
  <pre><code>$config['upload_path'] = './att/';
  </code></pre>
  
  <p>is it maybe this line wrong att folder child of CodeIgniter folder
  should i check file premison. I add for this folder full control.
  In controller i get result when i <code>print_r $_FILES['file']['name']</code>, but some how nothing in folder???</p>