Closed Specko93 closed 6 years ago
var filedata = await Plugin.FilePicker.CrossFilePicker.Current.PickFile();
var myPickedFile= new MyPickedFile
{
Name = filedata.FileName,
Content = filedata.DataArray,
};
MyPickedFile what is that?
A simple class:
public class MyPickedFile
{
public string Name { get; set; }
public byte[] Content { get; set; }
}
How do i get File path of the selected file?
I don't get the file path, just file Name and the Content. Load the Content on a Stream and use the file as you need.
There are samples available on the new repo on: https://github.com/jfversluis/FilePicker-Plugin-for-Xamarin-and-Windows/issues
Can someone give me an example of FilePicker, I don't know how to call it..