Download Manager

Add-in Express™ Support Service
That's what is more important than anything else

Download Manager
How to intercept all file downloads 
Slava Bogdanov




Posts: 2
Joined: 2011-09-18
Hello!

I need to handle all downloads in IE in my extension and decide - continue download as usual or run external app to download it.

The flow should looks like:
1. User clicks a link or opens a page
2. If IE can not show the page (it is not html or another supported format), but can download it, then my extension should get an event
3. My extension asks (by HTTP GET request) my webserver with URL of file to download
4. Depending on answer from my server extension should continue download as usual, or start external software.

The questions is:
1. To what event I should subscribe to handle all downloads? FileDownload (http://msdn.microsoft.com/en-us/library/aa768284(v=VS.85).aspx ) looks good, but it have no URL of the file as parameter. In BeforeNavigate2 I do not know how to detect will document be loaded into window or downloaded into file...

Thanks in advance!

P.S. I've purchased Add-in Express for IE.
Posted 18 Sep, 2011 23:24:08 Top
Andrei Smolin


Add-in Express team


Posts: 17360
Joined: 2006-05-11
Hi Slava,

Please see Download Manager sample add-on for IE in VB.NET and C#. Does it answer to your question?

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 19 Sep, 2011 04:11:37 Top