title: PHP Warning: move_uploaded_file (Prestashop)
body: <p>i've tried searching but couldn't find the answer to my issue - i'm trying to upload an image and getting the following error.</p>
  
  <p>This is my error log:</p>
  
  <blockquote>
    <p>PHP Warning: move_uploaded_file(): Unable to move '/tmp/php19Ivqt' to
    '/var/www/vhosts/domain.co.uk/httpdocs/img/cms/20160115_090216.jpg' in
    /var/www/vhosts/domain.co.uk/httpdocs/admin813khufbl/filemanager/upload.php
    on line 71</p>
  </blockquote>
  
  <hr>
  
  <p>upload.php - line 69-71 is:</p>
  
  <pre><code>if ($is_img) {
      move_uploaded_file($tempFile, $targetFile);
      chmod($targetFile, 0777);
  }
  </code></pre>