Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
barry m.10
9 years agoNew member | Level 1
dbx.files_upload raises ('Connection aborted.', BadStatusLine("''",))
Hi,
I am unable to upload using your Files_upload function. It fails with the following error:
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
I am on Windo...
Greg-DB
Dropbox Community Moderator
9 years agoHi Barry, the first parameter to files_upload should be "A string or file-like obj of data.". That's the data that gets uploaded. So, if you want to upload a file, you need to open the file and supply the object (not just the path), as you have in your latter examples.
As far as the BadStatusLine issue is concerned, can you try opening the file in binary mode and let me know if that doesn't help? I.e.:
with open(LOCALFILE, 'rb') as f:
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!