spee.ch/server/middleware/multipartMiddleware.js
2018-06-27 14:23:14 -07:00

5 lines
232 B
JavaScript

const multipart = require('connect-multiparty');
const { publishing: { uploadDirectory } } = require('@config/siteConfig');
const multipartMiddleware = multipart({uploadDir: uploadDirectory});
module.exports = multipartMiddleware;