dropbox API v2 upload large files using python

前端 未结 2 2030
说谎
说谎 2020-12-16 07:06

I\'m trying to upload big file (~900MB) via Dropbox API v2 but I\'m getting this error:

requests.exceptions.ConnectionError: (\'Connection aborted.\',

2条回答
  •  情话喂你
    2020-12-16 07:25

    @Greg answer can be updated with Dropbox Api v2 call:

    self.client.files_upload_session_append_v2(
                    f.read(self.CHUNK_SIZE), cursor)
    cursor.offset = f.tell()
    

提交回复
热议问题