I'm trying to upload big file (~900MB) via Dropbox API v2 but I'm getting this error:
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
It works ok with smaller files.
I found in documentation that I need to open upload session using files_upload_session_start
method but I have an error on this command and I can't go further with ._append
methods.
How can I solve this problem? There're no info in docs. I'm using Python 3.5.1 and latest dropbox module installed using pip.
Here's code which I'm running to:
c = Dropbox(access_token)
f = open("D:\\Programs\\ubuntu-13.10-desktop-amd64.iso", "rb")
result = c.files_upload_session_start(f)
f.seek(0, os.SEEK_END)
size = f.tell()
c.files_upload_session_finish(f, files.UploadSessionCursor(result.session_id, size), files.CommitInfo("/test900.iso"))