From 0374fe973f11ee12b190dcf0bb3ccf353017092f Mon Sep 17 00:00:00 2001 From: Maythee Anegboonlap Date: Tue, 20 Aug 2024 21:31:02 +0200 Subject: [PATCH] Use mimeType in output too --- lib/services/medias/S3StorageFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/medias/S3StorageFile.ts b/lib/services/medias/S3StorageFile.ts index d0faa9cb..a5786669 100644 --- a/lib/services/medias/S3StorageFile.ts +++ b/lib/services/medias/S3StorageFile.ts @@ -142,7 +142,7 @@ export class S3FileStorage implements MediaStorage { type: presignedMedia.contentType.startsWith('video') ? MediaType.enum.video : MediaType.enum.image, - mime_type: presignedMedia.contentType, + mime_type: mimeType, url: `https://${this._host}/api/v1/files/${key}`, preview_url: null, text_url: null,