From 5cfd8106dd14956f5afe0310c4d8e671ee25b4a2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 17 Apr 2021 20:35:46 -0500 Subject: [PATCH] Resizer: set type explicitly --- app/soapbox/utils/resize_image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/utils/resize_image.js b/app/soapbox/utils/resize_image.js index b1fb4a41c..264dbf92b 100644 --- a/app/soapbox/utils/resize_image.js +++ b/app/soapbox/utils/resize_image.js @@ -68,7 +68,7 @@ const processImage = (img, { width, height, orientation, type = 'image/png', nam context.drawImage(img, 0, 0, width, height); canvas.toBlob((blob) => { - resolve(new File([blob], name)); + resolve(new File([blob], name, { type, lastModified: new Date().getTime() })); }, type); });