How to change FileSystemPermissionMode in cef?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to change FileSystemPermissionMode in cef?

Postby yukari » Thu Dec 23, 2021 4:08 am

When I was using cef in c++,I got in trouble in filesystem.
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
yukari
Newbie
 
Posts: 1
Joined: Thu Dec 23, 2021 4:00 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 43 guests