summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js3
-rw-r--r--lib/web/imageRouter.js2
2 files changed, 1 insertions, 4 deletions
diff --git a/app.js b/app.js
index 66329f39..ccb75da7 100644
--- a/app.js
+++ b/app.js
@@ -19,9 +19,6 @@ var helmet = require('helmet')
var i18n = require('i18n')
var flash = require('connect-flash')
-// utils
-var getImageMimeType = require('./lib/utils.js').getImageMimeType
-
// core
var config = require('./lib/config')
var logger = require('./lib/logger')
diff --git a/lib/web/imageRouter.js b/lib/web/imageRouter.js
index 7a3819c5..592a497c 100644
--- a/lib/web/imageRouter.js
+++ b/lib/web/imageRouter.js
@@ -42,7 +42,7 @@ imageRouter.post('/uploadimage', function (req, res) {
var AWS = require('aws-sdk')
var awsConfig = new AWS.Config(config.s3)
var s3 = new AWS.S3(awsConfig)
-
+ const {getImageMimeType} = require('../utils')
fs.readFile(files.image.path, function (err, buffer) {
if (err) {
logger.error(err)