We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
simon_schva
9 years agoHelpful | Level 6
To upload a file I use "client.put_file(filename, f)" what should I use to download?
Hi, I'm uploading files to Dropbox from an Arduino Yun using the Python.
This is the code (working fine) I use to upload
# -*- coding: utf-8 -*-
import dropbox
import datetime
suffix = da...
- 9 years ago
The 'dropbox.client' functionality you're using is actually for the deprecated API v1. You should update to the latest version and use it as documented here, which uses API v2.
To upload a file, you would use files_upload. To download a file you would use files_download or files_download_to_file. There's an example that showing uploading and downloading.
Mark
Super User II
9 years ago*moves to API forum*
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!