Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
FSUInnovation
6 years agoExplorer | Level 4
Working with File Content Sent From API file download curl request (php code)
I have a file that is in the form of a word doc on my dropbox application. I was able to get a working php curl without any errors from dropbox's side to download the file. I understand through the h...
Greg-DB
Dropbox Community Moderator
6 years agoIn this code, you're telling curl (via the 'CURLOPT_FILE' option) to save the downloaded data to the "$fp" file pointer that you provided. That means that the file data should be getting saved to the location specified by "filename" on the local filesystem.
So, if you're building a web app where this code is running on your web server, the file is going to be downloaded to the web server's filesystem, and not automatically returned to the end-user's web browser.
You can serve the downloaded file or stream the data to the user's browser, but exactly how you do so will depend on your setup and web framework/library that you're using (if any). As that's not about using the Dropbox API though, I can't offer much help or specific details on how to do so. You may want to refer to the documentation for your programming language, web framework, and/or web server, etc. for information on how to do so.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
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!