mirror of https://github.com/status-im/codimd.git
fix(imageRouter): import missing dependency: getImageMimeType
This commit is contained in:
parent
60ca6ed56c
commit
d79997808a
3
app.js
3
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')
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue