title: Codeigniter upload files at root directory outside of the installation folder
body: <p>This type of question has been asked here before, but no solution is working in this case. I have a website admin panel developed in <code>CI</code> and my directory looks like this.</p>
  
  <pre><code>uploads
      /stores
      /products
  admin
      /application
      /system
      /assets
  </code></pre>
  
  <p>Now, I have to upload files in the subfolders of uploads that are residing in the root via a controller.</p>
  
  <p>I have looked around other solutions and I have tried followings:</p>
  
  <pre><code>$upload_path = './uploads/stores/';
  </code></pre>
  
  <p>Above code is working when I keep uploads folder inside the admin folder. But I need to keep the uploads folder outside the admin.</p>
  
  <p>I looked at the path <code>CI</code> uses and based on this, here is another method I tried</p>
  
  <pre><code>$upload_path = '../../uploads/stores/';
  </code></pre>
  
  <p>and also,</p>
  
  <pre><code>$upload_path = '/home/domain/public_html/uploads/stores/';
  </code></pre>
  
  <p>But this gives me following error.</p>
  
  <blockquote>
    <p>The path to the image is not correct.</p>
  </blockquote>
  
  <p>I'm completely lost here. Any suggestion is appreciated. </p>