howhow can I use uploadtype resumable in Drive.Files.insert() Drive API

102 views Asked by At

I try to use Drive.Files.insert() for making more than 50mb csv in Google app script.(using Drve API) the error message is Empty response. I read reference but there is no answer to do that. here is code.

 var optionalArgs = { 
     uploadType: 'resumable',
    }; 
 var resource = {
                     title: fileName,
                     parents: [],
     };
 Drive.Files.insert(resource, blob, optionalArgs);

thank you for reading my message.

0

There are 0 answers