RE: How to specify a path for file download
- From: "BobM" <BobM@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 13 May 2005 14:59:35 -0700
Thanks for that - a nice nice lateral approach. It may be the way to go.
Cheers
Bob
"Michiel" wrote:
> Just a thought for a possible work-around; you could capture the URL of the
> file in the BeforeNavigate event and, if the user wants to download it,
> present a dialog and use another way to download the file (e.g. with the
> URLDownloadToFile API).
>
> "BobM" wrote:
>
> > Hi,
> > In IE6, if you try to open say a .mpg link that Media Player refuses to
> > open, IE presents a dialog warning that the file is either corrupted or of
> > an incorrect type, and recommendss that you cancel the download. If you
> > proceed with the download, IE presents a "Save to" dialog, you select where
> > to save the file and proceed. IE then displays the file download progress
> > dialog etc.
> >
> > I am using IWebBrowser2 in my app. I have managed to intercept the initial
> > error (OnNavigateError) that is generated when MP wont play the file. Here I
> > present the user with a warning not to download the file, and set a member
> > bool to signal that the next FileDownload event should cancel if the user
> > cancels in my dialog. That's all fine. But I also want to be able to be able
> > to specify where the file should be downloaded to. At present if the user
> > does not cancel (so my member bool is left unchecked so the FileDownload
> > event is not cancelled, the file download just proceeds without any
> > opportunity to select a path, and the file is saved to the temporary
> > directory. I can present a "Save to" dialog, but I cannot see any interface
> > in IWebBrowser or IDocHostUIHandler to set the user specified path.
> >
> > I think I am missing something here. Can anyone help please.
> > TIA,
> > Bob
> >
> >
.
- References:
- How to specify a path for file download
- From: BobM
- RE: How to specify a path for file download
- From: Michiel
- How to specify a path for file download
- Prev by Date: AxWebBrowser true document size problem
- Next by Date: Re: How can i do to trigger a search dlg?
- Previous by thread: RE: How to specify a path for file download
- Next by thread: IHTMLDocument2 onselectionchange document.selection.range has unexpected values
- Index(es):
Relevant Pages
|
|