Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading file from local storage fails on UWP #58

Open
zippo227 opened this issue May 9, 2017 · 4 comments
Open

Reading file from local storage fails on UWP #58

zippo227 opened this issue May 9, 2017 · 4 comments

Comments

@zippo227
Copy link

zippo227 commented May 9, 2017

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);
@jhooper91
Copy link

I was getting Exception thrown: 'System.NotImplementedException' in PCLStorage.dll

when executing on UWP (but code is in a PCL)
IFolder rootFolder = FileSystem.Current.LocalStorage;

Problem was that I had not added the nuget package to the UWP application, although I had added it to the PCL. Needs to be in both places.

@xavier-rigau
Copy link

@zippo227 can you close the issue if it has been resolved?

@zippo227
Copy link
Author

@xavier-rigau the issue is not resolved. I did have the PCL in the proper locations. Has an update been pushed to fix this issue that I should test?

@haison8x
Copy link

Wew, 45 open issues, 7 pending pull requests. This library seems to move to trash :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants