Adding missing multipart to importer route

closes #869
This commit is contained in:
Hannah Wolfe 2013-09-25 09:36:45 +01:00
parent 785707b853
commit 4b5cfbde2e

View File

@ -264,6 +264,7 @@ when.all([ghost.init(), helpers.loadCoreHelpers(ghost)]).then(function () {
server.use(express.urlencoded());
server.use('/ghost/upload/', express.multipart());
server.use('/ghost/upload/', express.multipart({uploadDir: __dirname + '/content/images'}));
server.use('/ghost/debug/db/import/', express.multipart());
server.use(express.cookieParser(ghost.dbHash));
server.use(express.cookieSession({ cookie: { maxAge: 60000000 }}));