Results 1 to 1 of 1

Thread: Adding a link in a MHTML to an attached file

  1. #1

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Adding a link in a MHTML to an attached file

    Hey there! (Please let me know if this is the right forum to post this question. I tried to delete it but didn't found a way to do so)

    I am creating a MHTML document with the following:
    • Root HTML
    • Secondary HTML Pages
    • Referenced CSS Files
    • Referenced Image Files
    • Misc Attachments (IE: Word 2007 files)


    I have no problem adding links to the secondary HTML pages nor displaying any of the referenced files (CSS/Images).

    However, when I add a link to one of the Misc attachments (Example.docx), the browser displays a "save as" dialog (Like I want it to), but instead of providing the name as "Example.docx", it provides "Random.tmp".

    Is there a way to specify the name of the file download? I already tried the following:
    • Content-Disposition: attachment;filename="Example.docx"
    • Content-Disposition: attachment;filename="Example.docx";name="Example.docx"
    • Content-Type: application/octet-stream;name="Example.docx"
    • Content-Type: application/octet-stream;name="Example.docx";filename="Example.docx"


    All of this is inside of a MHTML with a content-type "multipart/related"

    Can anyone help me or point me to the right direction? I really appreciate it!

    Thanks
    Last edited by Tec-Nico; Apr 12th, 2009 at 06:28 PM. Reason: Verifying this is the right forum to post this
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width