RE: Force a file download for link

2005-08-30 Thread Bob Showalter
Denzil Kruse wrote: Hi, I want my users to download a csv file. When they left click on the link, it brings the file up within the browswer. They can of course do a right click and Save Target As depending on the browser. But I don't want to fuss with instructions and confused users.

RE: Force a file download for link

2005-08-30 Thread Denzil Kruse
--- Bob Showalter [EMAIL PROTECTED] wrote: snip use CGI qw(:standard); open FILE, ...blah blah... print header('application/octet-stream'); print while FILE; Thanks for the help Bob! Is there another way besides the content-disposition to specify an attachment or

Re: Force a file download for link

2005-08-30 Thread Wiggins d'Anconia
Denzil Kruse wrote: --- Bob Showalter [EMAIL PROTECTED] wrote: snip use CGI qw(:standard); open FILE, ...blah blah... print header('application/octet-stream'); print while FILE; Thanks for the help Bob! Is there another way besides the content-disposition to specify an

RE: Force a file download for link

2005-08-30 Thread Paul Archer
You might want to look at how sourceforge.net handles things when you go to download. I don't know the mechanism, but it's the behavior you want. Paul 3:23pm, Denzil Kruse wrote: --- Bob Showalter [EMAIL PROTECTED] wrote: snip use CGI qw(:standard); open FILE, ...blah blah...

Re: Force a file download for link

2005-08-30 Thread Denzil Kruse
--- Wiggins d'Anconia [EMAIL PROTECTED] wrote: snip In one my libraries I use, my %header_options = ( -Content_Type = 'application/octet-stream', -Content_Length = $content_length, ); if (defined $self-{'filename'} and

Re: Force a file download for link

2005-08-30 Thread Lewis Kirk
At 1:41 PM -0700 8/30/05, Denzil Kruse wrote: Hi, I want my users to download a csv file. When they left click on the link, it brings the file up within the browswer. They can of course do a right click and Save Target As depending on the browser. But I don't want to fuss with instructions and