fix(ios): fixed error when importing file with urlencoded names (#2831)

This commit is contained in:
Huang Xin
2026-01-02 14:35:11 +01:00
committed by GitHub
parent d9116d619a
commit 4f0ae78d43
@@ -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);