How to open a file from OneDrive with FileOpenPicker?

故事扮演 提交于 2019-12-08 10:19:56

问题


The document says "Your app can use the Windows file picker by using the Windows.Storage.Pickers namespace for opening and saving files to the user's OneDrive. " When FileOpenPicker opens the selection window, OneDrive is nowhere to be found. The app has signed in with scope "wl.skydrive_update". Could anyone offer a tip on this?


回答1:


Are you using a Windows 10 Universal App? As far as I know this is not supported on Windows 8.1.

Edit: (after testing I know Peter is right) This is an amazing feature that I never knew existed. As Peter explained, I just tested it and using the pickers you can open existing files in Onedrive and also create new files in a Windows 8.1 store app.

This may not work as well in Windows 10 because I believe they are changing Onedrive to only show the files that are "selected" for syncing and you won't see all the existing files by default. Maybe Peter can comment on this.




回答2:


There is no need to use the Live SDK if you're going to use the FolderPicker - the user just needs to pick it from the location (top-left corner of the screen that starts off saying "This PC").



来源:https://stackoverflow.com/questions/31013407/how-to-open-a-file-from-onedrive-with-fileopenpicker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!