question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Download link opens Windows Store and fails to download

See original GitHub issue

From @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:closed
  • Created 5 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
sgellockcommented, Oct 23, 2018

@corinagum can you work on a repro please? thanks

0reactions
tonyanzianocommented, Feb 12, 2019

Got a workaround for this working:

image

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 the download attribute and issue a click on it.

I’ve tried messing with target, id, and name attributes to change the name of the download window,

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found