Skip to content

[WASM] FileSavePicker.SuggestedFileName is ignored #6513

Closed

Description

@HavenDV

Current behavior

WASM FileSavePicker.SuggestedFileName is ignored
image

Expected behavior

image

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

var picker = new FileSavePicker
{
    SuggestedFileName = "test",
    FileTypeChoices =
    {
        { ".xlsx", new List<string> { ".xlsx" } },
    },
};
var file = await picker.PickSaveFileAsync();

Works on UWP/WinUI

Yes

Environment

  • Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
  • Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
  • Uno.SourceGenerationTasks
  • Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
  • Other:

Nuget Package Version(s): 3.9.0-dev.311

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

IDE:

  • Visual Studio 2017 (version: )
  • Visual Studio 2019 (version: latest)
  • Visual Studio for Mac (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
  • Visual Studio Code (version: )

Relevant plugins:

  • Resharper (version: )

Activity

  1. added
    difficulty/tbd
    kind/bug
    triage/untriaged
    on Jul 20, 2021
  2. added
    difficulty/medium 🤔
    project/non-ui ⚙️
    and removed
    difficulty/tbd
    triage/untriaged
    on Jul 23, 2021
  3. jeromelaban commented on Jul 23, 2021

    @jeromelaban
    Member

    I don't think there's an API for that in Javascript. @MartinZikmund do you know if that exists ?

  4. MartinZikmund commented on Jul 23, 2021

    @MartinZikmund
    Member

    It should be doable for the download picker, but the native doesn't support it yet.

  5. MartinZikmund commented on Jul 31, 2021

    @MartinZikmund
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/medium 🤔kind/bugproject/non-ui ⚙️

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions