spee.ch/server/middleware/multipartMiddleware.js

6 lines
232 B
JavaScript
Raw Normal View History

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