apache / apache/cordova-plugin-file

File access in Browser?

Open
#412 8 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
744
Forks
754
Avg merge
3d 4h
Merged PRs (30d)
1

Description

Hi,

I want to run my App in a browser (Chrome), but have problems with accessing the files in the same way as on android or ios.
For example, i want to store data in `cordova.file.dataDirectory`. On Chrome this is `filesystem:file:///persistent/` but when using `resolveLocalFileSystemURL`, i get the error:
`SecurityError: It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.`
In the docu I read to execute Chrome with the flag `--allow-file-access-from-files`, but this doesn't help me.

Any Ideas?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Chrome failure around cordova.file.dataDirectory and resolveLocalFileSystemURL, both with and without the --allow-file-access-from-files flag. Trace how the browser platform handles that path and determine whether the result should be a compatibility fix or clearer documentation of the supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.