Is dialog + readfile for files outside of the app dir supported in android?
Opening a file works on desktop, but when I try it in android (from the downloads folder), I get the error:
Uncaught (in promise) failed to read file at path: content://com.android.providers.media.documents/document/document%3A1000017026 with error: No such file or directory (os error 2)
the code in question:
https://github.com/bpevs/multireader/blob/main/src-www/index.ts#L22-L23
const file = await open({ multiple: false, directory: false })
const contents: Uint8Array = await readFile(file.path)
I have the following permissions. I don't have any additional :
"dialog:allow-open",
"fs:read-files",
{
"identifier": "fs:scope",
"allow": [
{ "path": "**" },
{ "path": "$DOCUMENT/.*" },
{ "path": "$DOCUMENT/**/.*" }
],
"deny": [{ "path": "/root" }]
}
