summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app.js b/app.js
index 677d3fa5..91e17ad8 100644
--- a/app.js
+++ b/app.js
@@ -548,6 +548,9 @@ app.post('/uploadimage', function (req, res) {
Body: buffer
}
+ var mimeType = getImageMimeType(files.image.path)
+ if (mimeType) { params.ContentType = mimeType }
+
s3.putObject(params, function (err, data) {
if (err) {
logger.error(err)