-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML5 Filesystem API doesn't work #5177
Comments
I thought nwjs allows any requested quota but you have to actually request a quota. I've got HTML5 filesystem working well on
|
Reproduced on Linux/Windows with nwjs-sdk-0.21.2. |
@Christywl how did you reproduce it? it should be working ... |
In browser the user will have to approve the usage. In NW the application needs to apply for quota first as @timfish said. We could add a callback as reporter proposed, or just let it pass first to make it easier for newcomers. |
changed the default setting to allow quota in git. Will be available in the next nightly build. |
package.json:
Opening the page will show 0 bytes of free space and something like this on console: "WARNING:chrome_quota_permission_context.cc(287)] Attempt to request quota from a background page". Chrome shows about 10mb when the user gives permission.
Something else to consider: Chrome asks the user if the app should allow filesystem API access, but for nw.js there should probably be an user-provided callback to decide based on URL.
The text was updated successfully, but these errors were encountered: