Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello, I am trying to download a file with PHP, but I am having trouble with this part of the code. I need an example in this regard
$url = "https://content.dropboxapi.com/2/files/download"; $sAccessToken = "*************************"; $curl = curl_init($url); $aPostData = array('path' => '/test.rar'); $aOptions = array( CURLOPT_POST => true, CURLOPT_HTTPHEADER => array('Content-Type:', 'Authorization: Bearer ' . $sAccessToken, 'Dropbox-API-Arg: ' . json_encode($aPostData) ) , CURLOPT_RETURNTRANSFER => true ); curl_setopt_array($curl, $aOptions); $result = curl_exec($curl); echo $result;
Attempting to open the file in the browser
How to access direct download link ?
Thank you so much
That's exactly what I'm looking for :)
Merhaba Greg, ne yazık ki (# files-get temporary link) işe yaramadı
I want to make a download button like picture
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!