title: Prestashop upload product image failed
body: <p>after uploading prestashop from my localhost to the server , a problem showed up
  when trying to upload product image i got this error "Server file size is different from local file size"</p>
  
  <p>after searching in prestashop files i found that is uploader class is responsible for the upload process.</p>
  
  <pre><code>public function upload($file, $dest = null)
  {
      if ($this-&gt;validate($file))
      {
          if (isset($dest) &amp;&amp; is_dir($dest))
              $file_path = $dest;
          else
              $file_path = $this-&gt;getFilePath(isset($dest) ? $dest : $file['name']);
  
          if ($file['tmp_name'] &amp;&amp; is_uploaded_file($file['tmp_name'] ))
                  move_uploaded_file($file['tmp_name'] , $file_path);
          else
              // Non-multipart uploads (PUT method support)
              file_put_contents($file_path, fopen('php://input', 'r'));
  
          $file_size = $this-&gt;_getFileSize($file_path, true);
  
          if ($file_size === $file['size'])
          {
              $file['save_path'] = $file_path;
          }
          else
          {
              $file['size'] = $file_size;
              unlink($file_path);
              $file['error'] = Tools::displayError('Server file size is different from local file size');
          }
      }
  
      return $file;
  }
  </code></pre>
  
  <p>when commenting if statement witch responsible of comparing file size and tring to upload an image i got this error </p>
  
  <p>"An error occurred while copying image, the file does not exist anymore."</p>
  
  <p>i changed img folder permissions to 777 still same problem ?</p>