locked
Why does the usage of a FilePicker requires file types settings in the manifest?

    Question

  • I wonder why you cannot use the FilePicker API without specifying a "windows.fileTypeAssociation" extension?


    I just want to allow the user to select any file on his documents folder that he wants. Is that even possible?

     

    Thursday, February 02, 2012 9:43 PM

Answers

  • Hi Phil,

    You don't need a to register a file association to use the FilePicker to pick files from the documents folder (or anywhere else). The file association is needed (along with the Document Library Access capability) for the application to see files in the documents folder without user intervention.

    The basic rules are is that the app can see

    • its own Application Data
    • files in specific typed (Music, Picture) libraries with the relevant capability
    • files of types it explicitly handles in the Document library with that capability
    • files explicitly chosen by the user via the FilePicker or FolderPicker.

     

    --Rob

     

    Friday, February 03, 2012 3:26 AM
    Moderator