![]() |
|
|
|
#1 |
|
Hello all,
My aim: To click on a link (or what looks like a link to the user), and rather than the file linked to opening in the browser or what ever, the save dialogue comes up so they can download it instead. I would like this to work with images - "click on the thumbnail to download a larger picture" - kind of thing. JPGs specifically. Can anyone help? I'm sure it's possible in java script, I just can't find it anywhere. I've found a few ASP scraps but nothing concrete. Hope you can help, fairly urgent I'm afraid :-/ Thanks for your time, I'm heading back to my pile of books for the night Amy K Amy |
|
|
|
|
#2 |
|
Posts: n/a
|
Amy wrote:
> My aim: To click on a link (or what looks like a link to the user), > and rather than the file linked to opening in the browser or what ever, the > save dialogue comes up so they can download it instead. Configure your server to send the following header for the file you want downloaded: Content-Disposition: attachment; filename=filenamegoeshere |
|
|
|
#3 |
|
Posts: n/a
|
"Amy" <> wrote in message news:bp1666$pkd$1$... > Hello all, > > My aim: To click on a link (or what looks like a link to the user), > and rather than the file linked to opening in the browser or what ever, the > save dialogue comes up so they can download it instead. http://www.aspfaq.com/2161 Ray at home |
|
|
|
#4 |
|
Posts: n/a
|
> http://www.aspfaq.com/2161 > > Ray at home Wow! That's lovely Very useful bit of code Would still like to know if it's possible in a client side HTML file, i.e. using java script or such Amy - off to make her CV downloadable |
|