multer-trello
v1.0.1
Published
Multer implementation for Trello
Downloads
4
Readme
Multer Trello
This project is mostly a proof of concept. It's not made to be used in production.
Installation
npm install --save multer-trello
Usage
const express = require('express');
const multer = require('multer');
const {TrelloStorage} = require('multer-trello');
const app = express();
const uploader = multer({
storage: new TrelloStorage({
key: 'trello-key',
token: 'trello-token',
board: 'board id',
list: 'list id',
}),
});
app.post('/upload', uploader.single('picture'), (req, res) => {
res.json(req.file);
});