Download link opens Windows Store and fails to download
See original GitHub issueFrom @paulio on August 8, 2018 15:19
Create an embedded text document launches the Windows Store rather than download the file
var contentType = "text/plain";
var attachment = new Attachment
{
Name = "Transcript.txt",
ContentUrl = $"data:{contentType};base64,{Convert.ToBase64String(bytes)}",
ContentType = contentType
};
Copied from original issue: Microsoft/BotFramework-Emulator#752
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Fix problems with apps from Microsoft Store
Fix problems with apps from Microsoft Store ; Start button, and then select ; Settings > ; Update & Security > ; Troubleshoot,...
Read more >How to fix Windows 10 apps pending or stuck downloading on ...
Are Microsoft Store apps not downloading on Windows 10? In this guide, we'll show you five ways to troubleshoot and fix this problem....
Read more >Microsoft Store Not Downloading Apps? 11 Ways to Fix
Go to Settings > Update & Security > Troubleshoot and locate Windows Store Apps in the “Find and fix other problems” section. Select...
Read more >Microsoft Store is not opening after reset [Fixed]
The Windows Store Apps troubleshooter is an excellent tool to check for issues with the Microsoft Store and applications downloaded through it.
Read more >How to fix Microsoft Store not working on Windows 11
If the Microsoft Store app isn't opening, keeps crashing, or apps won't download updates, use these steps to fix the issue on Windows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@corinagum can you work on a repro please? thanks
Got a workaround for this working:
The only issue is that the title of the download window is set to whatever the href is, which is the data url, so visually it doesn’t look amazing.
===
Suggestions for fixing the window title welcome.
Basically the workaround is after intercepting the click inside of
hyperlinkHandler.ts
, if it is a data url, I programatically create an<a>
element with the href set to the data url and thedownload
attribute and issue a click on it.I’ve tried messing with
target
,id
, andname
attributes to change the name of the download window,