chore: fix issue with sharing files with spaces in filename on ios
This commit is contained in:
@@ -144,7 +144,7 @@ export class ReceivedSharedItemsHandler {
|
|||||||
|
|
||||||
sendFileToWebView = async (item: ReceivedAndroidFile | ReceivedIosFile) => {
|
sendFileToWebView = async (item: ReceivedAndroidFile | ReceivedIosFile) => {
|
||||||
const path = isReceivedAndroidFile(item) ? item.contentUri : item.path
|
const path = isReceivedAndroidFile(item) ? item.contentUri : item.path
|
||||||
const data = await readFile(path, 'base64')
|
const data = await readFile(decodeURIComponent(path), 'base64')
|
||||||
const file = {
|
const file = {
|
||||||
name: item.fileName || item.path,
|
name: item.fileName || item.path,
|
||||||
data,
|
data,
|
||||||
|
|||||||
Reference in New Issue
Block a user