We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Holzauge20
3 years agoExplorer | Level 4
Dropbox upload via Python
The Dropbox upload via Python script file with the Raspberry Pi via the API interface suddenly no longer works. Does anybody have the same Problem ?
- 3 years ago
This may be due to a recent change to our TLS configuration. Dropbox recently retired support for older versions of the TLS protocol, specifically 1.0 and 1.1. You'll need to make sure your app uses TLS 1.2. If you're using the Dropbox Python SDK, to use TLS 1.2 you'll need to update to at least v8.4.1 of that SDK (or preferably, the latest version which is currently v11.29.0).
Otherwise, I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. In that case, please reply with:
- the name and version number of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
- the full text of any error or unexpected output
Greg-DB
Dropbox Staff
This may be due to a recent change to our TLS configuration. Dropbox recently retired support for older versions of the TLS protocol, specifically 1.0 and 1.1. You'll need to make sure your app uses TLS 1.2. If you're using the Dropbox Python SDK, to use TLS 1.2 you'll need to update to at least v8.4.1 of that SDK (or preferably, the latest version which is currently v11.29.0).
Otherwise, I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. In that case, please reply with:
- the name and version number of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
- the full text of any error or unexpected output
streetcodernate
3 years agoExplorer | Level 4
This still isn't working for me. I am using version 11.30.0 and my code looks like this:
def upload_file_to_dropbox(_file, file_name):
dbx = get_dropbox_client()
try:
dbx.files_upload(_file.read(), '/CSV_UPLOADS/' + file_name)
print(f'file {file_name} uploaded to dropbox')
except Exception as e:
print(e)
return False
what could be my issue?
- Greg-DB3 years agoDropbox Staff
streetcodernate Can you elaborate on what you mean when you say it isn't working for you? What error or unexpected output are you getting?
- streetcodernate3 years agoExplorer | Level 4
My bad, man! I’m actually not receiving any error! The files_upload function seems to be successful as no exception is thrown, but when I check the /CSV_UPLOADS folder, the file that was supposed to be uploaded isn’t there!
- Здравко3 years agoLegendary | Level 20
streetcodernate wrote:... but when I check the /CSV_UPLOADS folder, the file that was supposed to be uploaded isn’t there!
Hi streetcodernate,
Does you application have full account access or only application folder access? 🧐 If it's the second case where are you actually looking for your CSV_UPLOADS folder? 🤔 In account root folder or within the application folder? 😉
Hope this gives direction.
- streetcodernate3 years agoExplorer | Level 4
Wow, nvm! I found the folder! It was uploading to an entirely different folder due to me changing the scope of my access token. It's all good now. Thanks for the help, Greg
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 7 days 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!