I have tried many different ways to create a Google Doc with DocsList.createFile()
. According to the documentation, one can specify the MIME type of the file as it is created. I want to use DocsList so that I can directly create the document in the destination folder. The following creates a Google Doc (I can see it in the folder in Drive) but I get a 404 error when trying to access it either via the Drive interface or programmatically:
var folder = DocsList.getFolderById(folderID);
var doc = folder.createFile("FileName", "", "application/vnd.google-apps.document");
In fact, I cant get any of the MIME types specified here to work.