multer-gdrive
multer storage engine for google drive
Installation
npm install --save multer-gdrive
Usage
var google = var express = var multer = var multerGdrive = var app = var jwtClient = /*...*/; var upload = app
File information
multer-gdrive
appends to the uploaded file the following information
Key | Description |
---|---|
googleId |
file id on google drive |
Preprocessing
the constuctor for multer-gdrive
accepts an optional second parameter that receives in input the file stream and returns a Promise resolving to the processed stream/buffer to be sent to google drive