473,387 Members | 1,582 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,387 software developers and data experts.

Download tools

Allowing download of file types that will display in a browser is no
problem, but how about files types that don't display? I would like my
clients to be able to click on a link that will start a download or any type
of file. Try searching on "download"! Of course this has to be server side -
I can't expect my clients to have to install something at there end. Thanks.
Jul 22 '05 #1
5 1373
On Mon, 31 Jan 2005 14:32:38 GMT, "Simon Wigzell"
<si**********@shaw.ca> wrote:
Allowing download of file types that will display in a browser is no
problem, but how about files types that don't display? I would like my
clients to be able to click on a link that will start a download or any type
of file. Try searching on "download"! Of course this has to be server side -
I can't expect my clients to have to install something at there end.


First, always specify the operating system in asking a question like
this. Thw web server can send any file type, and the client can
choose to save it, but in some versions you have to configure the
specific MIME type.

Otherwise, did you try your own suggestion? Aspin.com should have
download scripts and components to search for, as should most other
ASP resource sites.

Jeff
Jul 22 '05 #2
huh? Any <A HREF...> should work to point to the file. The user will then be
prompted to save/open it....
What is it that you are trying to do different that makes you think you need
something more?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Simon Wigzell" <si**********@shaw.ca> wrote in message
news:akrLd.230981$8l.230324@pd7tw1no...
Allowing download of file types that will display in a browser is no
problem, but how about files types that don't display? I would like my
clients to be able to click on a link that will start a download or any
type of file. Try searching on "download"! Of course this has to be server
side - I can't expect my clients to have to install something at there
end. Thanks.

Jul 22 '05 #3

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eZ*************@TK2MSFTNGP09.phx.gbl...
huh? Any <A HREF...> should work to point to the file. The user will then
be prompted to save/open it....
What is it that you are trying to do different that makes you think you
need something more?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Simon Wigzell" <si**********@shaw.ca> wrote in message
news:akrLd.230981$8l.230324@pd7tw1no...
Allowing download of file types that will display in a browser is no
problem, but how about files types that don't display? I would like my
clients to be able to click on a link that will start a download or any
type of file. Try searching on "download"! Of course this has to be
server side - I can't expect my clients to have to install something at
there end. Thanks.


Well, if the file is an image file it will open in another browser window,
if it is a .zip file it will open winzip if that is installed, if it is a
..doc it will open in word...etc. I want a server side process that will just
set off a download of the file, regardless of type. e.g. the link would be
something like http://[DomainName]/Download.asp?FileName

You can get tons of free Server Side upload code, why not download?
Jul 22 '05 #4
true... but now you are trying to override the USERS settings.
If it's a file type I've specified to open then I want it to open....

Anyway, just set the file type to "unknown" to force the download, in the
headers.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Simon Wigzell" <si**********@shaw.ca> wrote in message
news:o9PLd.247384$6l.197252@pd7tw2no...

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eZ*************@TK2MSFTNGP09.phx.gbl...
huh? Any <A HREF...> should work to point to the file. The user will then
be prompted to save/open it....
What is it that you are trying to do different that makes you think you
need something more?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Simon Wigzell" <si**********@shaw.ca> wrote in message
news:akrLd.230981$8l.230324@pd7tw1no...
Allowing download of file types that will display in a browser is no
problem, but how about files types that don't display? I would like my
clients to be able to click on a link that will start a download or any
type of file. Try searching on "download"! Of course this has to be
server side - I can't expect my clients to have to install something at
there end. Thanks.


Well, if the file is an image file it will open in another browser window,
if it is a .zip file it will open winzip if that is installed, if it is a
.doc it will open in word...etc. I want a server side process that will
just set off a download of the file, regardless of type. e.g. the link
would be something like http://[DomainName]/Download.asp?FileName

You can get tons of free Server Side upload code, why not download?

Jul 22 '05 #5
You can look here:

http://www.xefteri.com/articles/may082002/default.aspx

This explains how to use the Response.AddHeader to put the "attachment" into
the stream so that it does not just open the file based on the MIME mapping.

Ben Miller

"Simon Wigzell" <si**********@shaw.ca> wrote in message
news:o9PLd.247384$6l.197252@pd7tw2no...

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eZ*************@TK2MSFTNGP09.phx.gbl...
huh? Any <A HREF...> should work to point to the file. The user will then
be prompted to save/open it....
What is it that you are trying to do different that makes you think you
need something more?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Simon Wigzell" <si**********@shaw.ca> wrote in message
news:akrLd.230981$8l.230324@pd7tw1no...
Allowing download of file types that will display in a browser is no
problem, but how about files types that don't display? I would like my
clients to be able to click on a link that will start a download or any
type of file. Try searching on "download"! Of course this has to be
server side - I can't expect my clients to have to install something at
there end. Thanks.


Well, if the file is an image file it will open in another browser window,
if it is a .zip file it will open winzip if that is installed, if it is a
.doc it will open in word...etc. I want a server side process that will
just set off a download of the file, regardless of type. e.g. the link
would be something like http://[DomainName]/Download.asp?FileName

You can get tons of free Server Side upload code, why not download?

Jul 22 '05 #6

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

Similar topics

5
by: Brandon Walters | last post by:
I wrote a file download module for my website. The reason for the file download module is that my website downloads work on a credit based system. So I need to keep track of and limit daily...
0
by: Sarah Akers | last post by:
GgF ----gL5cJ72EqiGIQ0SK65Rz Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <head> <style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
0
by: Anne Snow | last post by:
7qs ----bSCMEc0pLIbJxmV9 Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px;...
0
by: Lynda Kilgore | last post by:
jGu ----qtHwhORV90yyhqJMOc Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px;...
4
by: clintonG | last post by:
I've already checked out Microsoft's current build information resource and went to the MSDN subscriber downloads. The subscriber downloads menu indicates two separate downloads for Visual Studio...
3
by: LeAnne | last post by:
where can i download the setup for vb.net 2005 express edition. the link on MS site allows me to download only a file which when run will install it onto my computer. What i need is the whole...
5
by: John Murray | last post by:
Hi, I'm pretty new to javascript and haven't been able to find the solution to this. I have built a web site for my team, and linked to an excel workbook that has several special functions that...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
10
by: CJ | last post by:
Can someone tell me how to download a webpage complete with images and insert it into a richtextbox? Thanks
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.