I'm using the HTTP API with PHP via it's cURL methods. I send in the correct way the request and I get a correct status (200). But as response from the request I expected the content of the file and I receive strings as this one:
@/tmp/php5BHw8P;filename=8jh7d5.jpg;type=image/jpeg
Am I doing something wrong?
What should I do with this string?
I'm doing something like this:
$curl = curl_init($url);
$aPostData = array('path' => '/Example.jpg');
$aOptions = CURLOPT_POST => true,
CURLOPT_HTTPHEADER => array('Content-Type: ', // To force empty Content-type
'Authorization: Bearer ' . $sAccessToken,
'Dropbox-API-Arg: ' . json_encode($aPostData)
),
CURLOPT_RETURNTRANSFER => true
);
curl_setopt_array($curl, $aOptions);
$result = curl_exec($curl); // $result = '@/tmp/php5BHw8P;filename=8jh7d5.jpg;type=image/jpeg'
.
.
.