Skip to content

Reading file from local storage fails on UWP #58

@zippo227

Description

@zippo227

After creating a path using the PortablePath and passing in LocalStorage, I am only able to access it if I use GetFileFromPathAsync. It fails when I use LocalStorage.GetFileAsync. It wo

   string path = PortablePath.Combine(FileSystem.Current.LocalStorage.Path, model.filename);
   
   //Succeeds on UWP, iOS, and Android
   IFile file = await FileSystem.Current.GetFileFromPathAsync(path);
   
   //Fails on UWP, succeeds on iOS and Android
   IFile file = await FileSystem.Current.LocalStorage.GetFileAsync(path);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions