breautek commented on code in PR #1372: URL: https://github.com/apache/cordova-docs/pull/1372#discussion_r1813527984
########## 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: Yah I wasn't exactly a fan of how I articulated it either, but I couldn't come up with something better, so I decided to let someone do that for me :laughing: -- 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