Re: Downloading a file



"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


.



Relevant Pages

  • Re: Help with find and replace macro
    ... It is now replacing the header. ... Before I had FILENAME and DATE in the header. ... Also, if I have just a footer, it will replace in the footer. ...
    (microsoft.public.word.vba.general)
  • Re: Help with find and replace macro
    ... Firstly you are now saying that it works in the Header and Body whereas before it was only in the Body - has that change occurred? ... I have inserted the word FILENAME in the main text, ... I have cut and pasted the below simplified code for sub Test into the Visual ... I then used the debug menu and placed the cursor at the next MyStoryRange ...
    (microsoft.public.word.vba.general)
  • RE: Attachments of incoming mails missing, Exchange 2k3
    ... On the Firebox, I have Content Type set to ALLOW for anything that I want to ... I suppose it's possible but stripping the attachment for just one user seems ... he also said it may be insecure to allow that filename for ips ... For me, those header types were: ...
    (microsoft.public.exchange.admin)
  • Re: Rules - Moving Mail with an Attachment
    ... View a header of the messages - does it include the filename in the header? ... Teach Yourself Outlook 2003 in 24 Hours ... >> | by the anti-virus software. ...
    (microsoft.public.outlook.general)
  • Re: Rules - Moving Mail with an Attachment
    ... View a header of the messages - does it include the filename in the header? ... Teach Yourself Outlook 2003 in 24 Hours ... >> | by the anti-virus software. ...
    (microsoft.public.outlook)