fix: set correct filename in openFile API, closes #803 (#810)

This commit is contained in:
Huang Xin
2025-04-04 19:20:02 +08:00
parent ab22a83332
commit 4703eec045
2 changed files with 4 additions and 4 deletions
@@ -89,7 +89,7 @@ export const nativeFileSystem: FileSystem = {
// Once the bug is resolved, we should switch back to using NativeFile.
// RemoteFile is not usable on Android due to unknown issues of range fetch with Android WebView.
const absolutePath = await join(prefix, path);
return await new RemoteFile(this.getURL(absolutePath), path).open();
return await new RemoteFile(this.getURL(absolutePath), fname).open();
} else {
return await new NativeFile(fp, fname, base ? baseDir : null).open();
}