breautek commented on code in PR #1372: URL: https://github.com/apache/cordova-docs/pull/1372#discussion_r1813567245
########## www/_posts/2024-10-23-cordova-plugin-file-8.1.1.md: ########## @@ -0,0 +1,42 @@ +--- +layout: post +author: + name: Norman Breau + url: https://breautek.com +title: "File Plugin 8.1.1 Released!" +categories: announcements +tags: news releases +--- + +We are happy to announce that we have just released an update for `cordova-plugin-file`! + +* [cordova-plugin-file@8.1.1](https://www.npmjs.com/package/cordova-plugin-file) + +**To upgrade:** + +```bash +cordova plugin remove cordova-plugin-file +cordova plugin add cordova-plugin-file@8.1.1 +``` + +## Release Highlights + +For Android, we corrected an issue that prevented `.toURL()` to be used on `content://` file entries. Now `.toURL()` will return a DOM-usable url on both `file://` and `content://` file entries. + +This will be important for upcoming releases planned for the Camera plugin. + +Note that this only works when `AndroidInsecureFileModeEnabled` is off. If `AndroidInsecureFileModeEnabled` then `.toURL()` will return the underlying URL and modern Android devices will reject `content://` file paths. If your project is still using `AndroidInsecureFileModeEnabled` it is time to strongly consider migrating to schemes Review Comment: I did a little bit of rewording, let me know if it looks good to you if you can. -- 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