This project is mostly a proof of concept. It's not made to be used in production.
npm install --save multer-trello
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);
});