ssnielsen commented on issue #720:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/720#issuecomment-824872966


   We're in the middle of bumping our app's API target from 29 to 30, and we 
might be experiencing something of the same nature.
   
   We read from the fileUrl (that looks like 
`file:///storage/emulated/0/Android/data/{packageName}/cache/1619099822506.jpg`)
 we get back in the success callback we pass to `camera.getPicture` using a 
normal `XMLHttpRequest` (old-fashioned, I know 😄).
   When targeting 29, we can read from the url, but on 30, we get a generic 
`ERR_ACCESS_DENIED` in Chrome's dev tools. I'm guessing it's due to the scoped 
file access changes that was introduced as part of API target 29 (that we opted 
out of using the `requestLegacyExternalStorage` flag.
   
   What I'm not quite sure of is why this plugin would be affected by changes 
to file access - I'd expect that the files are stored in a cache directory, but 
I'm not 100% into the inner works of this plugin. Is it preferring external 
storage?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to