I am trying to upload a .mp4 file to my Drive using the following code.
file = drive.CreateFile({'title': "video", 'mimeType':'video/mp4'})
file.SetContentFile('GOPR1017.mp4')
file.Upload()
I end up getting this error:
httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header.
This only occurs when trying to upload .mp4 files. The script seems to have no issue with .jpg.