Google Drive support
This commit is contained in:
parent
755f92618b
commit
f75925f3ae
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user