'How to show File Saveas Dialog in Blazor Server App

I am new to Blazor and trying to show File Saveas Dialog as shown in following link on a button click. Save as Image

The requirement is - upon clicking the Saveas button above Saveas dialog should be popped up where user can choose the destination of file and file name.

I have tried "enabling the setting to check the save location in the download settings of the browser" and it works. But we do not want to depend on the Browser settings.

Please add your thoughts on below..

  1. Instead of depending on the browser settings is there any other way to show Saveas dialog?

  2. Are there any open source Nuget packages available to help on this?

NOTE: I am using .NET 6.0 for building my application

Thanks in advance,

Bhargavi Gowri.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source