

So when I call API like this to upload Ebook information (include ebookPhoto) I am get error name is: "Login required" localhost:3009/api/ebook/gdriverĭetail error is below: POST /api/ebook/gdriver 500 1478.509 ms - 354Īt Gaxios._request (E:\google_api_uploader\node_modules\gaxios\build\src\gaxios.js:85:23)Īt process._tickCallback (internal/process/next_tick. const fs = require('fs') Ĭonst ` Īnd this is my route for API: // Create and upload to google driverĮbookRouter.post('/gdriver', gDriverUpload.array('ebookPhoto', 5), ebookController.createEbook) Below is these steps that I did.ġ- Step 1: I run follow code to to get "token.json" file. I also follow this link Upload images to Google Drive You can also permanently delete them to empty your trash. You can restore files from your trash before the 30-day time window. Files in trash will be automatically deleted after 30 days. To delete your Google Drive files, move them to the trash. And using multer-google-drive it's a multer middleware Storage Engine for upload file to Google Drive. Clear space in Google Drive, Gmail, and Google Photos to make room for new items. I am developing NodeJS API to upload multi-images to Google Driver, when user create an Ebook (include name, description and ebookPhoto), I am using ExpressJS to write Rest API.
