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 Windows 7 Pro 64 bit. Using Python 2.7.11. I installed upgrades to dropbox (6.2 six-1.10.0) and Requests (2.10.0).
I can replicate the problem with your back-up-and-restore example program.
My app at dropbox is in development status. Permission type = App Folder. I generated an access token to use while developing.
My token seems ok. If I extend the demo program with a for loop to list files in my directory, it lists the files which I manually placed in there.
Also the following creates a text file in my app folder (the text file sent to dropbox contains just the string 'my-file.txt' ... ? is this working as designed? ... I assumed that it would have sent the file named 'my-file.txt'?)... anyway the text file is created at DropBox ok.
dbx.files_upload('my-file.txt', BACKUPPATH2, mode=WriteMode('overwrite'))
But when I try with any file object in the first operand it times out after (exactly) 1 minute with the above error message.
with open(LOCALFILE, 'r') as f:
# We use WriteMode=overwrite to make sure that the settings in the file
# are changed on upload
print("Uploading " + LOCALFILE + " to Dropbox as " + BACKUPPATH + "...")
What can I do to analyse the problem? Is there some config required at the router etc. ... I have tried with my firewall off. I have no problem dragging files to DropBox or FTPing large files etc
Thanks