Re: Downloading a file
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Sat, 27 Jan 2007 15:27:13 -0500
"JonWayn" <JonWayn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5D26F011-CE49-4B84-BD2A-A654973E59D4@xxxxxxxxxxxxx
Educate me a little bit about getting information about the file that
is about to be downloaded. I want to accept the same name that would
be displayed in the FileName box of the FileOpen dialog. What event
do I respond to in order to get this information, and how do I
retreive it (the filename that is)?
The dialog would get the file name from the Content-Disposition HTTP
header (see KB article KB260519) or from the URL itself if there is no
such header. Getting the file name from the URL is easy - see
InternetCrackUrl. Getting the header is non-trivial, you need to be
sufficiently familiar with C++ and COM to correctly implement
IBindStatusCallback interface.
Would getting the file name from URL be sufficient for you?
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Re: Downloading a file
- From: Igor Tandetnik
- Re: Downloading a file
- From: Igor Tandetnik
- Re: Downloading a file
- Prev by Date: Re: Downloading a file
- Next by Date: Re: How can I get the page setup information like the size of paper(A4, A3)?
- Previous by thread: Re: Downloading a file
- Next by thread: How can I get the page setup information like the size of paper(A4, A3)?
- Index(es):
Relevant Pages
|
|