spee.ch/server/helpers/multipartMiddleware.js

6 lines
227 B
JavaScript
Raw Normal View History

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