breautek commented on issue #561:
URL: 
https://github.com/apache/cordova-plugin-file/issues/561#issuecomment-1527543490

   > However, this will automatically request all 3 permissions(images,video 
and audio). If the file-plugin should only request the needed permission for 
the specific read-request, the plugin has to be changed in a more extensive way.
   
   It's not ideal but I'm not sure there is a way around it coming from a 
generic filesystem plugin standpoint. In order to be more specific, we'd 
probably need some kind of contextual API rather than working with a URI which 
could be anything (regardless of extension).
   
   With all these privacy-centric changes being introduced since API 30, it's 
starting to feel less sense for the filesystem API to handle the external 
storage, for two reasons:
   
   A) It's not even recommended to use the File API for external storage, they 
have a `MediaStore` interface for accessing these files instead.
   B) There is no File API bridge on API 29, so using external storage is 
completely broken on API 29 devices. The File API bridge was only introduced in 
API 30. On API 29 devices, the only way to access the external filesystem files 
is through the `MediaStore` interface.
   
   But https://github.com/apache/cordova-plugin-file/pull/566 is definitely 
would be an okay stopgap for cordova-android@12.


-- 
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.

To unsubscribe, e-mail: [email protected]

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