From 4f0ae78d43afcb150c5925baa1c384bc29fbccb9 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Fri, 2 Jan 2026 14:35:11 +0100 Subject: [PATCH] fix(ios): fixed error when importing file with urlencoded names (#2831) --- apps/readest-app/src/services/nativeAppService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/readest-app/src/services/nativeAppService.ts b/apps/readest-app/src/services/nativeAppService.ts index 9c437d1c..3ad6a1f1 100644 --- a/apps/readest-app/src/services/nativeAppService.ts +++ b/apps/readest-app/src/services/nativeAppService.ts @@ -205,7 +205,7 @@ export const nativeFileSystem: FileSystem = { // or file:// URIs is security scoped resource in iOS (e.g. from Files app), // we cannot access the file directly — so we copy it to a temporary cache location. const prefix = await this.getPrefix('Cache'); - const dst = await join(prefix, fname); + const dst = await join(prefix, decodeURIComponent(fname)); const res = await copyURIToPath({ uri: path, dst }); if (!res.success) { console.error('Failed to open file:', res);