Menu
This issue has driven me crazy for a week already. Unfortunately I still cannot find a proper solution.
Viewed 5k times
Disable Ie Windows 10
Here is the scenario, I need to download then automatically open an MSG outlook mail file from my asp system by IE without prompt for 'Open' or 'Save as'.So far I have tried various methods but none works:
When opening Microsoft Internet Explorer the first time, it opens a new tab that prompts the user to set IE11 as the default web browser. You could simply select “No thanks“, but it could still be an annoyance for other users who use the computer in the future.
I have followed this instruction by editing the registry (http://9to5it.com/internet-explorer-disable-do-you-want-to-open-or-save-this-file-prompt/). However, this seems to work only for a static link like (http: //example.com/Filename.msg). It does not work for my case which is a dynamic link like (http://example.com/index.aspx?Page=DOWNLOAD?asbdasd?File=Filename.msg)
I am using Internet Explorer 11 on a Windows 7 64bit.Hope someone can help me to figure out this issue.
serenesat
4,3261010 gold badges2727 silver badges4747 bronze badges
Rey HendersonRey Henderson
Browse other questions tagged internet-explorer or ask your own question.
Active1 year, 11 months ago
I am downloading files from server using javascript blob something like
The code above works fine but in IE it shows a dialog:
Also if I put a direct pdf link in the href tag then it also works fine. So it looks like there is no problem with the adobe plugin.
What I want is to directly open the file instead of showing this prompt. I tried Registry hack as suggested here but did not have any luck. Any idea how to achieve this?
Zong
5,09355 gold badges2323 silver badges3939 bronze badges
jitender
5,87111 gold badge1010 silver badges3636 bronze badges
1 Answer![]()
For anyone who is facing the same issue, I solved it by using
window.open . Instead of downloading the response, I directly pass the URL to window.open something like
How To Disable Download
Note:-API should returns the stream response with header type set. In my case C# web API method was
Hope it will help someone.
jitender
Disable File Download Prompt Ie 11jitender
5,87111 gold badge1010 silver badges3636 bronze badges
Ie 11 Disable Download Prompt FirefoxNot the answer you're looking for? Browse other questions tagged javascriptangularjstypescriptblobinternet-explorer-11 or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |