I'm exporting a file directly into the Downloads folder, like so:
private async Task ExportDB()
{
string downloadsPath = SHGetKnownFolderPath(Guid.Parse("374DE290-123F-4565-9164-39C4925E467B"), 0);
exportJson = await Database.ExportDB();
string formattedJson = JValue.Parse(exportJson).ToString(Formatting.Indented);
string fullPath = downloadsPath + "\\exported_db.json";
File.WriteAllText(fullPath, formattedJson);
}
However, I want to trigger the download event on my browser to show the downloads window (like it usually does when we download something from the browser). How can I trigger that event?