0

According to the docs broadFileSystemAccess and the accompanied windows setting is required for accessing files in locations other than the default UWP app accessible files.

But when using a FilePicker is this still required?

As the User specifies the file using the FilePicker he should only be able to choose file he has access to, hence my confusion. The docs are unclear to me on this matter.

DTul
  • 646
  • 6
  • 21

1 Answers1

2

No, broadFileSystemAccess declaration is required only if you want your app to have programmatically access to all the file system, in every moment and without having to ask every time.

With the FilePicker, you don’t have to use that declaration, because the user has the full command and knows exactly which files the can access.

Best regards

Luca Lindholm
  • 813
  • 1
  • 9
  • 23
  • To add to this, you MUST use the StorageFile object returned by the FilePicker for all file operations. You cannot reliably use the older .NET System.IO API's or try to call File.FromPath on the results of a FilePicker. Only the StorageFile object itself will give you reliable access to the file. – Johnny Westlake Apr 06 '20 at 18:41
  • How so? because of multiple platforms? – DTul Apr 07 '20 at 06:50