summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRaccoon Li2017-05-08 20:04:05 +0800
committerRaccoon Li2017-05-08 20:04:05 +0800
commitd79997808a224cdfe6a4f3fbc76c1b1e9afc3b87 (patch)
tree6078c6ffe108a2669bc19e5e52c8fa3e1d4f360f /lib
parent60ca6ed56cc896acb0fd9650377ebfc6d0e6c486 (diff)
fix(imageRouter): import missing dependency: getImageMimeType
Diffstat (limited to 'lib')
-rw-r--r--lib/web/imageRouter.js2
1 files changed, 1 insertions, 1 deletions
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)