Dear SIrs,
I need to write to a file in a JSON script with Chromium rendering engine,.
I am currently using this code:
async function Save_OnClick()
{
try
{
let txt;
const handle = await showSaveFilePicker({
suggestedName: "XXXs.txt",
types: [
{
description: "Text file",
accept: { "text/plain": [".txt"] },
},
],
});
txt = await prepareBackupTxt();
const writableStream = await handle.createWritable();
await writableStream.write(txt);
await writableStream.close();
}
catch(ex)
{
console.log('ex: ' + ex);
}
}
it works as expected in:
- a chrome browser
- in freemaster with edge rendering engine
In the internal chrome engine the following exception is returned:
NotAllowedError: The request is not allowed by the user agent or the platform in the current context.
How can i allow file writes in the internal chromium?
Thank you and best regards
Tazio