From 10d6cdb06a00588a7c8d7753bc351c458005c803 Mon Sep 17 00:00:00 2001 From: Jack Nam <30609178+thienlnam@users.noreply.github.com> Date: Fri, 3 Feb 2023 13:47:44 -0800 Subject: [PATCH] Merge pull request #14823 from Pujan92/fix/upload-profile-pic-14757 (cherry picked from commit 2a8e6a83a3ae5246e426c4a867518f2a91945fbe) --- src/components/AttachmentPicker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AttachmentPicker/index.js b/src/components/AttachmentPicker/index.js index dddceb7cf7df..dc6573e02c20 100644 --- a/src/components/AttachmentPicker/index.js +++ b/src/components/AttachmentPicker/index.js @@ -36,10 +36,10 @@ class AttachmentPicker extends React.Component { if (file) { const cleanName = FileUtils.cleanFileName(file.name); - file.uri = URL.createObjectURL(file); if (file.name !== cleanName) { file = new File([file], cleanName); } + file.uri = URL.createObjectURL(file); this.onPicked(file); }