'How to upload ZipFile to Dropbox using Python?
I am trying to upload a .zip file to Dropbox using the Dropbox API for python. But this method seems to fail. Can anyone please help me with this?
if os.path.exists(zip_name):
with zipfile.ZipFile(zip_name,'r') as zf:
self.auth_client.put_file('/', zf, overwrite=True)
zf.close()
Error Message:
KeyError: 'There is no item named 8192 in the archive'
This error seems to propagate from the put_file method.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|