I'm trying to "insert" a Drive file. I've made the auth and it works right :)
But when I try to create (insert) a new file from JS, it creates one, but a file named "Untitled" with no extension at all. (I have a sync folder on my file system, and it is the same thing).
My code is this:
function createNewFile( ) { gapi.client.load('drive', 'v2', function() { var request = gapi.client.drive.files.insert ( { "title" : "cat.jpg", "mimeType" : "image/jpeg", "description" : "Some" } ); request.execute(function(resp) { console.log(resp); }); }); } Any idea about what is wrong? I can list files from my drive from JS, and this code creates this "untitled" and no extensioned file.