我正在尝试通过 PyDrive 将一个大型 csv 压缩文件(~6GB)上传到 Google Drive,但每次我尝试通过以下方式上传时:
file = self.drive.CreateFile({
'title': file_name,
'parents': [{ 'id': parent_id }],
'mimeType': mime_type,
})
file.SetContentFile(file_path)
file.Upload()
我收到以下错误:httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header.
.我正在使用 Python 3.7。
有谁知道我是否可以通过 Pydrive 上传大文件或逐块上传?
提前致谢!
最佳答案
尝试改用 pydrive2 库。 https://github.com/iterative/PyDrive2 .它没有文件大小的问题。
关于python-3.x - Pydrive:如何上传大文件或分块上传?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64054230/