I have some code that has been happily creating sheets files in google drive by uploading csv files. Over the weekend, it stopped doing that and started resulting in docs files instead. Am I doing something wrong? Or is this a glitch in drive?
insert := service.Files.Insert(&drive.File{
Title: filename + ".csv",
MimeType: "text/csv",
Parents: parentIds,
}).Convert(true).Media(inBuf)
driveFile, err := insert.Do()
if err != nil {
return err
}
Thanks for any ideas.
This is using v2 of the google sdk (githubb.com/google/google-api-go-client/drive/v2).