title: Curl error when uploading file "failed creating formpost data"
body: <p>When I trying to upload a file with php and curl, an error occurs "failed creating formpost data". I know that error occur when file path incorrect</p>
  
  <pre><code>test.php
  ...
  $postcontent['files'] = '@test.jpg';
  ...
  </code></pre>
  
  <p>test.php and test.jpg in the same folder. But if I change path to physic path, code run well</p>
  
  <pre><code>test.php
  ...
  $postcontent['files'] = '@F:\xampp\htdocs\upload\test.jpg';
  ...
  </code></pre>