|
 |
asp_web_howto thread: Download Attachment Code
Message #1 by "hrishikesh" <hrishi_technical@y...> on Sat, 14 Apr 2001 09:11:50
|
|
hi, can u tell me how to write code to download the attachment
see if u writt code like <a href="http://webserver/filname.zip ">Click to
download </a> then it works fine
i.e. dialog box to save the file is appears but if u go for .doc or .txt
file then the file directly opens into browser.
how could i manage?
please help me
Thanks in advance
hrishikesh musale
Message #2 by "Simon Garstin" <sgarstin@t...> on Sat, 14 Apr 2001 17:17:02 +0100
|
|
You need to ensure that:
(1) the folder on the server where the file sits has appropriate file
permissions set
(2) the zip or exe needs to be a genuine zip or exe, just altering the
extension alone will not make it work
----- Original Message -----
From: hrishikesh <hrishi_technical@y...>
To: ASP Web HowTo <asp_web_howto@p...>
Sent: Saturday, April 14, 2001 9:11 AM
Subject: [asp_web_howto] Download Attachment Code
> hi, can u tell me how to write code to download the attachment
> see if u writt code like <a href="http://webserver/filname.zip ">Click to
> download </a> then it works fine
> i.e. dialog box to save the file is appears but if u go for .doc or .txt
> file then the file directly opens into browser.
> how could i manage?
> please help me
> Thanks in advance
> hrishikesh musale
>
Message #3 by "Daniel O'Dorisio" <dodorisio@h...> on Mon, 16 Apr 2001 07:40:13 -0400
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: You need to ensure that:
: (1) the folder on the server where the file sits has appropriate file
: permissions set
: (2) the zip or exe needs to be a genuine zip or exe, just altering the
: extension alone will not make it work
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i dont think this is the problem. i think the problem is, the browser
recognizes the file extension and opens it. for example. if you didnt have
ms word on your pc, the browser would ask to download it. but with text..
the browser knows it can open it, and it does.
maybe another thing you could do is.... put your .doc and .txt into zip
archives. that would fix your problem, but i dunno if you want to do that.
Daniel
-----Original Message-----
From: Simon Garstin [mailto:sgarstin@t...]
Sent: Saturday, April 14, 2001 12:17 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Download Attachment Code
You need to ensure that:
(1) the folder on the server where the file sits has appropriate file
permissions set
(2) the zip or exe needs to be a genuine zip or exe, just altering the
extension alone will not make it work
----- Original Message -----
From: hrishikesh <hrishi_technical@y...>
To: ASP Web HowTo <asp_web_howto@p...>
Sent: Saturday, April 14, 2001 9:11 AM
Subject: [asp_web_howto] Download Attachment Code
> hi, can u tell me how to write code to download the attachment
> see if u writt code like <a href="http://webserver/filname.zip ">Click to
> download </a> then it works fine
> i.e. dialog box to save the file is appears but if u go for .doc or .txt
> file then the file directly opens into browser.
> how could i manage?
> please help me
> Thanks in advance
> hrishikesh musale
|
|
 |