Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Informatica P.
9 years agoNew member | Level 1
Is posible upload file whit PHP and get public share link to file?
Hello,
I want upload a file whit API PHP. But i want get the public link share to my users download the file from their home.
Is posible?
Steve M.
Dropbox Staff
9 years agoYour URL is wrong... it should be https://content.dropboxapi.com/2/files/upload.
There may be other ways, but one way to post the content of a local file would be to read it into memory first. E.g., this worked for me:
curl_setopt($ch, CURLOPT_POSTFIELDS, fread($f, filesize("test.txt")));About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!