Hey there! (I hope this is the right forum for this question, please let me know if it is not)

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