Fox example, here is a demo page https://mburakerman.github.io/file-syst ... -api-demo/. which can read a local file and change its content.
But I can't write content to the target file in my program which use cef.
When I try to check permission in demo page:
- Code: Select all
read_status = await fileHandle.queryPermission({ mode : "read" });
console.log('current readstatus is', this.read_status);
readwirte_status = await fileHandle.queryPermission({ mode : "readwrite" });
console.log('current readwirtestatus is', this.readwirte_status);
the out put is:
- Code: Select all
current readstatus is granted
current readwirtestatus is denied
I don't know how to change mode:readwrite status to granted, so look for help XD