We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
mattps
8 years agoNew member | Level 2
Python 2.7 upload error
Hi, This was working up until a few weeks ago and I can't for the life of me see what is wrong - maybe a fresh set of eyes will help. I am trying to loop through the contents of a directory a...
mattps
8 years agoNew member | Level 2
A bit more testing...
I fi I cange the file type filter to ".py" and remove the hardcoded filenames it works and the files get uploaded. So the DropBox API doesn't work with JPG files anymore????
mattps
8 years agoNew member | Level 2
I may have done an update (sudo get-apt update) recently, I can't remember.
- mattps8 years agoNew member | Level 2
Thanks for the link but I'm going to try the following as a workaround:
https://learn.adafruit.com/cloud-cam-connected-raspberry-pi-security-camera/dropbox-sync
- Greg-DB8 years ago
Dropbox Community Moderator
The Dropbox API certainly still works with .jpg files. (I tested your code with a .jpg file in fact.)
At the layer where this is failing, the file type shouldn't matter anyway. It may have to do with the file size though. Perhaps try to different sizes to verify that?
Otherwise, it if you did do an update, it may be a bug in one of those lower level libraries.
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!