You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Synk
8 months agoExplorer | Level 3
Upload API issue
Hi everybody, I'm using Dropbox API in my web application to upload files to Dropbox via PHP code. I've been using this procedure for a long time, but today I got an upload error: "Failed to upl...
- 8 months ago
Synk Здравко is correct; the Dropbox API requires TLS (v1.2 in particular, currently), and is currently being served with a valid certificate (from DigiCert). You generally shouldn't need to configure anything manually to be able to connect to that; the default is usually sufficient. We recommend against disabling the verification, as that may make you susceptible to certain types of security issues.
As for why this started occurring, you may want to check if there's anything on your network connection, such as a proxy, VPN, firewall, or other security software that may be interfering with your connections to the Dropbox servers.
Здравко
Legendary | Level 20
Synk wrote:...
I tried to download a new cacert.pem, but the upload still fails.
...
Hi Synk,
Why at all do you need explicit certificate set?! All Dropbox sites (including all API domains) are certified by DigiCert. 🙂 You don't need to set anything. If by any chance you need to connect some self signed domain, do it on that connection only. You don't need to change that for all connections (including Dropbox API related).
Good luck.
Synk
8 months agoExplorer | Level 3
Hi Здравко ,
Thank you very much for your reply.
I need to keep SSL for security reason. So if I don't explicitly set a certificate, it doesn't work.
if I set VERIFYPEER = FALSE, the upload actually works. But I believe this is not secure? Otherwise what's the purpose of this option?
I don't understand why I started to receive this error from this month. I've been using the upload API for over 10 years already with a generic cacert.pem file, and it has always worked correctly. I also tried to download a new version of cacert.pem, but nothing changed...
Thanks,
Kind regards
- Здравко8 months agoLegendary | Level 20
Synk wrote:...
I need to keep SSL for security reason. So if I don't explicitly set a certificate, it doesn't work.
...Synk, As seems you have misinterpret my comment. I never said to turn your SSL off neither SSL verification! To be more precise Dropbox uses TLS, by the way. That what I take in mind is that a typical setup comes with all most popular basic certificates preset (including DigiCert - the one used by Dropbox). Usually you don't need to add/include such a certificate since its there already. If this is not true for you, check your server setup configuration. I doubt somebody here can lead you to custom setup configuration issue - this is something very specific. Find how you have turned that certificate out and revert back; that's it.
Have a nice day.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,913 PostsLatest Activity: 4 hours agoIf 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 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!