Google Drive support

This commit is contained in:
benweet 2013-03-24 20:30:06 +00:00
parent 755f92618b
commit f75925f3ae

View File

@ -106,12 +106,9 @@ var gdrive = (function($) {
'params' : { 'uploadType' : 'multipart', }, 'params' : { 'uploadType' : 'multipart', },
'headers' : { 'Content-Type' : 'multipart/mixed; boundary="' 'headers' : { 'Content-Type' : 'multipart/mixed; boundary="'
+ boundary + '"', }, 'body' : multipartRequestBody, }); + boundary + '"', }, 'body' : multipartRequestBody, });
if (!callback) { request.execute(function(file) {
callback = function(file) { console.log(file);
console.log(file); });
};
}
request.execute(callback);
}; };
return gdrive; return gdrive;