Closed miniatarule closed 5 years ago
We should put a note prominent notice somewhere, as this comes up again and again... The readme.md has the following:
/// Full file path of the picked file; note that on some platforms the
/// file path may not be a real, accessible path but may contain an
/// platform specific URI; may also be null.
public string FilePath { get; }
Please don't rely on the FilePath to contain an actual path; use GetStream() instead and read from the steam. Thanks!
Expected Behavior
When select a file from the download folder on Android. We should get the path of the file. The returning path is: content://com.android.providers.downloads.documents/document/2046
Actual Behavior
The returning path is: content://com.android.providers.downloads.documents/document/2046
Steps to Reproduce the Problem
1) FileData fileData = await CrossFilePicker.Current.PickFile(); if (fileData == null) return; // user canceled file picking
2) . fileData.FilePath ==> is not working for all directories
Specifications