|
-
Apr 12th, 2009, 06:25 PM
#1
Thread Starter
Frenzied Member
Adding a link in a MHTML to an attached file
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
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
-
Apr 17th, 2009, 03:39 AM
#2
Re: Adding a link in a MHTML to an attached file
What code are you using to create the MHTML?
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|