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 And using multer-google-drive it's a multer middleware Storage Engine for upload file to Google Drive. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |