There was an error while loading. Please reload this page.
1 parent 3bc4b9b commit 4e21479Copy full SHA for 4e21479
example/back-up-and-restore/backup-and-restore-example.py
@@ -23,7 +23,7 @@ def backup():
23
# are changed on upload
24
print("Uploading " + LOCALFILE + " to Dropbox as " + BACKUPPATH + "...")
25
try:
26
- dbx.files_upload(f, BACKUPPATH, mode=WriteMode('overwrite'))
+ dbx.files_upload(f.read(), BACKUPPATH, mode=WriteMode('overwrite'))
27
except ApiError as err:
28
# This checks for the specific error where a user doesn't have
29
# enough Dropbox space quota to upload this file
0 commit comments