From 2a3db43df511a9aea17174e5922b9d88e77ec309 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Tue, 25 Jul 2023 02:53:19 +0530 Subject: [PATCH] chore: fix issue with sharing files with spaces in filename on ios --- packages/mobile/src/ReceivedSharedItemsHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mobile/src/ReceivedSharedItemsHandler.ts b/packages/mobile/src/ReceivedSharedItemsHandler.ts index dbddc60d8..99e03d22f 100644 --- a/packages/mobile/src/ReceivedSharedItemsHandler.ts +++ b/packages/mobile/src/ReceivedSharedItemsHandler.ts @@ -144,7 +144,7 @@ export class ReceivedSharedItemsHandler { sendFileToWebView = async (item: ReceivedAndroidFile | ReceivedIosFile) => { const path = isReceivedAndroidFile(item) ? item.contentUri : item.path - const data = await readFile(path, 'base64') + const data = await readFile(decodeURIComponent(path), 'base64') const file = { name: item.fileName || item.path, data,