473,320 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Link save dialogue

Amy
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
Jul 20 '05 #1
3 3314

"Amy" <bl**@blar.blar.com> wrote in message
news:bp*******************@news.demon.co.uk...
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
Jul 20 '05 #2
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
Jul 20 '05 #3
Amy
http://www.aspfaq.com/2161

Ray at home


Wow! That's lovely :-) thank you so much

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 :-)
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: JimC | last post by:
Think I asked this once before. My apologies for asking twice. In a certain PHP document at my site, I have a link to a Word version of the same document. If the user downloads it, I want to...
0
by: Raymond H. | last post by:
Hello, I tried the line in vb but it open the dialogue box (I'd like not to open this box; I'd like save without viewing a dialogue box). WebBrowser1.ExecWB OLECMDID_SAVEAS,...
2
by: Kit Truong | last post by:
Hello, I have an asp page that produces output from a database. This allows a simple way for the user to save the data to a text file by going to File->Save as... The default save as options...
8
by: dave | last post by:
Hi there I'm trying to force save as dialogue using this code in download.asp..but when it runs it prompts for download.asp to save or open. code snippet (from aspfaq.com) ...
5
by: kevin | last post by:
Hi, Any help with this would be really appreciated! I'm trying to download a file from a remote server. The access permissions is okay but the problem I'm facing is that the file is getting...
6
by: Thomas Schoch | last post by:
I want to add a combobox to the save file dialog, where the user can choose an additional option. How can this be done in VB.NET? Thomas
0
by: Dave | last post by:
Greetings, Using the string: $pdf->Output("testfile.pdf", I); the "Save As..." dialogue box does not provide the specified filename. The default is the name of the PHP page used to generate...
3
by: Arrowin | last post by:
Hi all Im relatively new at flash, and am needing to make a "demo file" which consists of a photo album. The people viewing the album must then be able to click on an image, and this will bring up a...
4
by: Ken | last post by:
How do I use JavaScript to save a webpage (screen) to a file? Perhaps a Mhtml? Thanks for the help. Ken
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.