Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Plugin.FilePicker CrossFilePicker not picking files from SD card. (Xamarin Forms Android Only)

$
0
0

Hi

When i try to pick file from SD card, CrossFilePicker throws exception "System.IO.DirectoryNotFound Exception".

    file = await CrossFilePicker.Current.PickFile();
            if (file == null)
            {
                return;
            }

            fileData = file.DataArray;
            filePath = file.FilePath;

Do i need to add anything specific to access file from SD card.

Note: I added ReadExternalStorage, WriteExternalStorage permissions.

Thanks,
Santhosh


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>