I created a plugin for android that allows a user to pick a file from either external or internal storage of the phone. That part works fine. I’m running on Android 6.0.1. I’ve also allowed all permissions needed.
However, i’m having problems when I’m trying to access the said file for upload later. Using this line of code:
FileStream file = new FileStream("filePath", FileMode.Open);
When I’m trying to get file from the internal storage, I could upload it without problem. The value of the filePath is
When I try to get file from my SD card, I get UnAuthorizedAccessException saying that the access to path is denied. The filePath value is
Any heads up on how to solve this issue? Is it because of the FileStream or is it because of my plugin? Thanks in advance.