chore: fix issue with sharing files with spaces in filename on ios

This commit is contained in:
Aman Harwara
2023-07-25 02:53:19 +05:30
parent 2e59aa5a07
commit 2a3db43df5

View File

@@ -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,