forked from akai/readest
fix(ios): fixed error when importing file with urlencoded names (#2831)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user