-
Hi, Is FileUtils#resolveLocalFileSystemURI() implementation in cordova-plugin-file expected to work for url strings with 'content://' protocol ? What I observe is that #resolveNativeUri() call at https://github.com/apache/cordova-plugin-file/blob/master/src/android/FileUtils.java#L743 first converts given 'content://' url into 'https://localhost/__cdvfile_content__/.....' format and later at ContentFileSystem#exists() method call at https://github.com/apache/cordova-plugin-file/blob/master/src/android/FileUtils.java#L752, internally tries to create 'content://' url back (see https://github.com/apache/cordova-plugin-file/blob/master/src/android/ContentFilesystem.java#L123), here implementation results invalid url in the form of 'content://e_content__/....' and subsequently fails with an IOException Is it allowed to use #resolveLocalFileSystemURI() for 'content://' urls ? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Based on what you've found, I think this is probably a bug and probably should be reported as an issue inside cordova-plugin-file. |
Beta Was this translation helpful? Give feedback.
Based on what you've found, I think this is probably a bug and probably should be reported as an issue inside cordova-plugin-file.