我想上传一个超过2GB的大文件到OneDrive。
我已经尝试使用SDK页面 (https://github.com/OneDrive/onedrive-sdk-python) 中提供的代码。
我已经尝试使用SDK页面 (https://github.com/OneDrive/onedrive-sdk-python) 中提供的代码。
returned_item = client.item(drive='me', path=backupPath).children['photos.tgz'].upload_async('/Users/koot/photos.tgz')
虽然这段代码可以处理小文件,但在上传大文件时,我遇到了以下错误:
BrokenPipeError: [Errno 32] Broken pipe
requests.exceptions.ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))