title: Upload file to server outside codeigniter path
body: <p>I am trying to move file outside Codeigniter path like "/home/uploads" using move_uploaded_file or copy but both method doesn't work! </p>
  
  <p>I uploaded the files by using Grocery Crud library &amp; tried to move file using callback_after_upload. </p>
  
  <p>in Grocery Crud Controller:</p>
  
  <pre><code> $crud-&gt;callback_after_upload(array($this, 'upload'));
  </code></pre>
  
  <p>and in the callback function:</p>
  
  <pre><code>function upload($uploader_response,$field_info, $files_to_upload){
  ini_set("display_errors",1);
  $baseURl = site_url();
              $upload_config['upload_path'] = ''; 
  $file_uploaded = $field_info-&gt;upload_path.'/'.$uploader_response[0]-&gt;name; 
  copy($file_uploaded, "/home/uploads/");
  </code></pre>
  
  <p>any help please!</p>