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
test.php
...
$postcontent['files'] = '@test.jpg';
...
test.php and test.jpg in the same folder. But if I change path to physic path, code run well
test.php
...
$postcontent['files'] = '@F:\xampp\htdocs\upload\test.jpg';
...