locked
How to set max number of files allowed to open in FileOpenPicker RRS feed

  • Question

  • Hi,

    I am using Windows::Storage::Pickers::FileOpenPicker. Is there a way to set the max number of files that are allowed to open through FileOpenPicker?

    Thanks

    Saturday, July 28, 2012 7:30 AM

Answers

  • There is no way to set a maximum. You can request either a single file or multiple files, but cannot control how many multiple is. What is the scenario where you need this?

    --Rob

    • Proposed as answer by Jesse Jiang Monday, July 30, 2012 8:35 AM
    • Marked as answer by Min ZhuMember Saturday, August 11, 2012 12:03 PM
    Sunday, July 29, 2012 4:16 AM
    Moderator

All replies

  • There is no way to set a maximum. You can request either a single file or multiple files, but cannot control how many multiple is. What is the scenario where you need this?

    --Rob

    • Proposed as answer by Jesse Jiang Monday, July 30, 2012 8:35 AM
    • Marked as answer by Min ZhuMember Saturday, August 11, 2012 12:03 PM
    Sunday, July 29, 2012 4:16 AM
    Moderator
  • Thanks Rob. I am trying to prevent user from selecting too many files that app can handle at a time. Now that control doesn't have the built-in function, it looks like app needs some UI to remind user and handle too many files being selected (or switch to single file selection mode)


    Fan

    Sunday, July 29, 2012 6:37 AM