spee.ch/server/routes/utils/multipartMiddleware.js

6 lines
243 B
JavaScript
Raw Normal View History

2018-03-29 20:24:52 +02:00
const multipart = require('connect-multiparty');
const { publishing: { uploadDirectory } } = require('../../../config/siteConfig.js');
2018-03-29 20:24:52 +02:00
const multipartMiddleware = multipart({uploadDir: uploadDirectory});
module.exports = multipartMiddleware;