breautek commented on PR #889:
URL: 
https://github.com/apache/cordova-plugin-camera/pull/889#issuecomment-2263064062

   > > Will wait on #629 to be merged then
   > 
   > I don't get the reference to that PR. How is #629 related to fixing the 
permissions problem?
   
   The actual link is https://github.com/apache/cordova-plugin-file/pull/629 
(it's a different repo)
   
   And the reason that relates is because this PR will cause `content://` urls 
to be returned instead of `file://` urls which Cordova had support for, but it 
was something infrequently used and it hasn't actually worked properly in quite 
some time.
   
   https://github.com/apache/cordova-plugin-file/pull/629 makes the content 
uris consumable by the file plugin allowing you to use `toURL()` to get a 
DOM-usable url or any other file APIs to read and/or copy the file content.
   
   We are going to have to add some documentation I think, there are 
significant differences and applications will have to adapt their usage. For 
example access to the `content://` is temporary and will expire once the app's 
activity has been closed. Therefore those urls cannot be saved. If you need 
permanent access then a copy will need to be made. A hypothetical scenario 
would be letting the user choose a profile pic, you'll want to be able to 
access that content again in the future, so the image should be copied to the 
app's internal data 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.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to