wikijs-fork/server/middlewares/upload.js

7 lines
180 B
JavaScript
Raw Normal View History

const { graphqlUploadExpress } = require('graphql-upload')
/**
* GraphQL File Upload Middleware
*/
module.exports = graphqlUploadExpress({ maxFileSize: 5000000, maxFiles: 20 })