diff --git a/lib/web/imageRouter/minio.js b/lib/web/imageRouter/minio.js index 3ced94e2d..412f67295 100644 --- a/lib/web/imageRouter/minio.js +++ b/lib/web/imageRouter/minio.js @@ -35,7 +35,9 @@ exports.uploadImage = function (imagePath, callback) { const key = path.join('uploads', path.basename(imagePath)) const protocol = config.minio.secure ? 'https' : 'http' - minioClient.putObject(config.s3bucket, key, buffer, buffer.size, getImageMimeType(imagePath), function (err, data) { + minioClient.putObject(config.s3bucket, key, buffer, buffer.size, { + 'Content-Type': getImageMimeType(imagePath) || 'application/octet-stream' + }, function (err, data) { if (err) { callback(new Error(err), null) return diff --git a/public/docs/release-notes.md b/public/docs/release-notes.md index 8a9780843..24d8e0c95 100644 --- a/public/docs/release-notes.md +++ b/public/docs/release-notes.md @@ -8,6 +8,7 @@ ### Bugfixes - Fix a crash when having numeric-only values in opengraph frontmatter - Fix unnecessary session creation on healthcheck endpoint +- Fix defect metadata being sent for minio uploads ## 1.9.9 2023-07-30