Skip to content

[Desktop] FileSavePicker: SuggestedFileName, FileTypeFilter, SuggestedStartLocation does not work. #21364

@ADD-Mario-Mora

Description

@ADD-Mario-Mora

Current behavior 🐛

When creating a FileSavePicker object:

  • Setting SuggestedFileName property does not work. No text filename is shown.
  • Setting SuggestedStartLocation property does not lead to the expected folder to save the file.
  • Filling FileTypeFilter with more than one file type, it always sets the first one as default excluding the rest of the given list.

Expected behavior 🎯

  • The given SuggestedFileName must appear when the picker opens.
  • The FileOpenPicker should display all the provided file types summarized in the filter when opened.
  • It should open the folder specified in the SuggestedStartLocation.

How to reproduce it (as minimally and precisely as possible) 🔬

  • Open the attached project, select the Desktop head, compile and run it.
  • On the main page, the main button opens the file save picker with a suggested file name, two image filter save types and a suggested start location.
  • Verify all of the 3 issues.
  • Switch to Wasm or WinAppPackage to observe correct behavior.

Workaround 🛠️

Not found.

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

Desktop (Windows)

Uno.Sdk version (and other relevant versions) 📦

Uno.Sdk 6.2.29

IDE version 🧑‍💻

17.14.12

Anything else we need to know? 💬

FileSavePickerDefaultFilename.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.triage/untriagedIndicates an issue requires triaging or verification

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions