locked
File picker does not open the suggested location in windows 8 surface RRS feed

  • Question

  • The file picker in windows 8 surface does not open the suggested start location for the second time after a file is opened or a file opened in any sub directories using the same. (using javascript).

    How do I reset the start location every time I call the file picker (File Browser) using javascript ??


    Monday, October 21, 2013 10:06 AM

Answers

  • No. The suggested start location is a suggestion. After the first use it will remember the user's choice.
    Tuesday, October 22, 2013 3:03 PM
    Moderator

All replies

  • This is expected. The suggested start location is a suggestion. After the first use it will remember the user's choice.

    --Rob

    Monday, October 21, 2013 3:32 PM
    Moderator
  • Thanks Rob ! But is there any way to reset the start location whenever I call the file picker ??


    Tuesday, October 22, 2013 9:00 AM
  • No. The suggested start location is a suggestion. After the first use it will remember the user's choice.
    Tuesday, October 22, 2013 3:03 PM
    Moderator
  • Thanks Rob ! But is there any way to reset the start location whenever I call the file picker ??


    Heres how I do it in C++, hopefully you can convert it to C#

    	FileOpenPicker^ openPicker = ref new FileOpenPicker();
    	openPicker->ViewMode = PickerViewMode::List;   //or Thumbnail;
    	openPicker->SuggestedStartLocation = PickerLocationId::PicturesLibrary;
        openPicker->FileTypeFilter->Append(".txt");
    


    n.Wright

    Tuesday, October 22, 2013 10:00 PM