From d687857546b2f803642e1dec09c03429fd0c4a46 Mon Sep 17 00:00:00 2001 From: Ali Toshmatov Date: Fri, 14 Jul 2023 21:48:46 +0500 Subject: [PATCH] Added creating uri in on file picked --- src/components/AttachmentPicker/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/AttachmentPicker/index.js b/src/components/AttachmentPicker/index.js index 48ccd1579b2e..e7653df2b4d0 100644 --- a/src/components/AttachmentPicker/index.js +++ b/src/components/AttachmentPicker/index.js @@ -37,6 +37,7 @@ function AttachmentPicker(props) { const file = e.target.files[0]; if (file) { + file.uri = URL.createObjectURL(file); onPicked.current(file); }