From c6e07515815e7ade0c58fec05618d12a854753b4 Mon Sep 17 00:00:00 2001 From: Alex Junior Date: Mon, 11 Apr 2022 15:17:28 -0300 Subject: [PATCH] [FIX] Force mime type when the image does not have a filename (#4006) --- app/views/ShareView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/ShareView/index.tsx b/app/views/ShareView/index.tsx index 053573c7b..312d455f7 100644 --- a/app/views/ShareView/index.tsx +++ b/app/views/ShareView/index.tsx @@ -180,7 +180,7 @@ class ShareView extends Component { // Set a filename, if there isn't any if (!item.filename) { - item.filename = new Date().toISOString(); + item.filename = `${new Date().toISOString()}.jpg`; } return item; })