IMediaFile doesn't include the FullPath #37
-
DescriptionIt is not possible to get the path where the file(s) where selected Actual BehaviorIMediaFile doesn't include the FullPath Expected behaviorHave the FullPath or at least the Path, it makes the plugin unusable sine how are you going to access the file later, you will need the FullPath Steps to reproduce the behavior
Screenshots or VideosN/A Reproduction LinkN/A Configuration
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@raulandresduque Hi |
Beta Was this translation helpful? Give feedback.
-
This can be done if the plugin returns the AssetIdentifier (iOS) and the uri (android). No permissions needed. Don't know exactly about android, but for iOS, if you want to do anything this that asset, you need permissions. Thats not included in this plugin. Code to retrieve asset in iOS
|
Beta Was this translation helpful? Give feedback.
-
Thank you @hplos. Yes, other addons like xamarin essentials or James Montenegro return the URL so, beyond the security restrictions, it is possible to get with the correct rights granted to the APP. |
Beta Was this translation helpful? Give feedback.
@raulandresduque Hi
It is not possible. Android and iOS have security policies that protect user data, so we can't get the real path to the file.
You can also view the documentation update in Xamarin.Essentials: