Please ensure that the following scopes are added in your appsscript. The fetchAll allows you make multiple HTTP requests in a single request and returns an array of responses. In the snippet above, we are directly invoking the Google Drive API (v3) instead of the DriveApp service of App Script. Table of contents How to share file for anyone Google Drive API using PHP Share files, folders and drives PHP Quickstart How to create a Google Drive. Here my quickstart.js : shareGoogleDriveFileWithMultipleUsers = ( ) => ) ) (.) then an HTTP POST request including the blob object. Google Drive API, especially when changing file metadata for many items that belong. What I'm trying to do concretely is to translate some data received from a form in a client side, compute it in Node.js side, create a file again on Node.js side and send it directly to my Google drive folder without write it on my hard disk, just upload it on the Google drive web service.īut my console returns me : Error: File not found. Files are created by a user and then can be added to a shared drive. I have tried fs.something but I think I got to mastery better the Buffer and Base64 concepts. I'm a little confusing with Buffer and Base64 so I have rather tried to use the below BlobToFile function, seems it works to process but the file is not found. I have tried to send the blob directly it failed. So far I have seen that there is some method like Buffer, Base64, and send Blob directly to Google drive. To succeed I translate blob in file before sending it. I'm trying to sent a file on some Google drive folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |