Thread: Force Downloads
View Single Post
Old 01-27-2004, 12:35 PM   #12 (permalink)
Latch
In Your Dreams
 
Latch's Avatar
 
Location: City of Lights
Nevermind.. you make the Content-Type header a application/attachment or something like that.

Problem is, it requires a bit of Perl or something-else code so when a link is clicked on it generates a "new page" that is the file and sends it to your browser with that Content-Type (it may be Content-Disposition). Your browser prompts you with what you want to do with the file. I think this works regardless of browser.

Check out this page for an idea of what I'm talking about.. I realise it's from a mailing list of a guy asking for help, but you can read his code and get the idea.

http://lists.w3.org/Archives/Public/...yJun/0000.html
Latch is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76