Forcing client accessible files to be downloaded

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I'm looking for a method to force a user to have the option of saving a file
to their HD no matter what browser they are using. I am familiar with
compressing a file and that offering a compressed file works. But I will not
be updating or uploading the file to the server. I'm just a person to find a
solution to the challenge; but I'm stumped.

The file will only be accessed by a known audience; which prefers the
ability to open files without unzipping.

Using Windows 2000 Server.

Thanks for the help.

Dave
 
What kind of solution are you looking for? A server-side ASP solution? A
file action solution? I don't understand what you're after. For an
server-side ASP solution on your site, use http://www.aspfaq.com/2161. If
you're talking about a setting on client machine, I believe if you set
"Confirm open after download" to true for the file extension in Windows
Explorer -- Tools -- Options -- File Types -- [extension] -- Advanced, this
will prompt the saveas... dialog if an http server returns a response of
this file type.

Ray at work
 
Looking for Server side rule to force restriction on a particular file.

Dave


Ray at said:
What kind of solution are you looking for? A server-side ASP solution? A
file action solution? I don't understand what you're after. For an
server-side ASP solution on your site, use http://www.aspfaq.com/2161. If
you're talking about a setting on client machine, I believe if you set
"Confirm open after download" to true for the file extension in Windows
Explorer -- Tools -- Options -- File Types -- [extension] -- Advanced, this
will prompt the saveas... dialog if an http server returns a response of
this file type.

Ray at work

Dave said:
I'm looking for a method to force a user to have the option of saving a file
to their HD no matter what browser they are using. I am familiar with
compressing a file and that offering a compressed file works. But I will not
be updating or uploading the file to the server. I'm just a person to
find
a
solution to the challenge; but I'm stumped.

The file will only be accessed by a known audience; which prefers the
ability to open files without unzipping.

Using Windows 2000 Server.

Thanks for the help.

Dave
 
On what server? Are you talking about on your webserver? A firewall? A
proxy server?

Ray at work

Dave said:
Looking for Server side rule to force restriction on a particular file.

Dave


Ray at said:
What kind of solution are you looking for? A server-side ASP solution? A
file action solution? I don't understand what you're after. For an
server-side ASP solution on your site, use http://www.aspfaq.com/2161. If
you're talking about a setting on client machine, I believe if you set
"Confirm open after download" to true for the file extension in Windows
Explorer -- Tools -- Options -- File Types -- [extension] -- Advanced, this
will prompt the saveas... dialog if an http server returns a response of
this file type.

Ray at work

Dave said:
I'm looking for a method to force a user to have the option of saving
a
file
to their HD no matter what browser they are using. I am familiar with
compressing a file and that offering a compressed file works. But I
will
not
be updating or uploading the file to the server. I'm just a person to
find
a
solution to the challenge; but I'm stumped.

The file will only be accessed by a known audience; which prefers the
ability to open files without unzipping.

Using Windows 2000 Server.

Thanks for the help.

Dave
 
That's the tip I needed www.aspfaq.com .

Thanks Ray.


Ray at said:
What kind of solution are you looking for? A server-side ASP solution? A
file action solution? I don't understand what you're after. For an
server-side ASP solution on your site, use http://www.aspfaq.com/2161. If
you're talking about a setting on client machine, I believe if you set
"Confirm open after download" to true for the file extension in Windows
Explorer -- Tools -- Options -- File Types -- [extension] -- Advanced, this
will prompt the saveas... dialog if an http server returns a response of
this file type.

Ray at work

Dave said:
I'm looking for a method to force a user to have the option of saving a file
to their HD no matter what browser they are using. I am familiar with
compressing a file and that offering a compressed file works. But I will not
be updating or uploading the file to the server. I'm just a person to
find
a
solution to the challenge; but I'm stumped.

The file will only be accessed by a known audience; which prefers the
ability to open files without unzipping.

Using Windows 2000 Server.

Thanks for the help.

Dave
 
Ray,
I have another question. One about getting ASP to control the download.
Having looked at and tried www.aspfaq.com/2161 I've run into a problem.
When I click on the link, which refers to a second ASP page (Easter2004.asp)
with the following code, I get a window asking if I'd like to save the ASP
page not the Easter2004.xls file.
I have tried a different MIME setting "application/vnd.ms-excel but
nothing changed. I prefer not to use Zip files or htm files with large
tables.


<%
Response.ContentType = "application/asp-unknown" ' arbitrary
fn = "Easter2004.xls"
FPath = "c:\" & fn
Response.AddHeader "content-disposition","attachment; filename=" & fn

Set adoStream = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(FPath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing

Response.End
%>


Dave


Ray at said:
What kind of solution are you looking for? A server-side ASP solution? A
file action solution? I don't understand what you're after. For an
server-side ASP solution on your site, use http://www.aspfaq.com/2161. If
you're talking about a setting on client machine, I believe if you set
"Confirm open after download" to true for the file extension in Windows
Explorer -- Tools -- Options -- File Types -- [extension] -- Advanced, this
will prompt the saveas... dialog if an http server returns a response of
this file type.

Ray at work

Dave said:
I'm looking for a method to force a user to have the option of saving a file
to their HD no matter what browser they are using. I am familiar with
compressing a file and that offering a compressed file works. But I will not
be updating or uploading the file to the server. I'm just a person to
find
a
solution to the challenge; but I'm stumped.

The file will only be accessed by a known audience; which prefers the
ability to open files without unzipping.

Using Windows 2000 Server.

Thanks for the help.

Dave
 
Such questions are best handled in microsoft.public.inetserver.asp.general

Ray at work

Dave said:
Ray,
I have another question. One about getting ASP to control the download.
Having looked at and tried www.aspfaq.com/2161 I've run into a problem.
When I click on the link, which refers to a second ASP page (Easter2004.asp)
with the following code, I get a window asking if I'd like to save the ASP
page not the Easter2004.xls file.
I have tried a different MIME setting "application/vnd.ms-excel but
nothing changed. I prefer not to use Zip files or htm files with large
tables.


<%
Response.ContentType = "application/asp-unknown" ' arbitrary
fn = "Easter2004.xls"
FPath = "c:\" & fn
Response.AddHeader "content-disposition","attachment; filename=" & fn

Set adoStream = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(FPath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing

Response.End
%>


Dave


Ray at said:
What kind of solution are you looking for? A server-side ASP solution? A
file action solution? I don't understand what you're after. For an
server-side ASP solution on your site, use http://www.aspfaq.com/2161. If
you're talking about a setting on client machine, I believe if you set
"Confirm open after download" to true for the file extension in Windows
Explorer -- Tools -- Options -- File Types -- [extension] -- Advanced, this
will prompt the saveas... dialog if an http server returns a response of
this file type.

Ray at work

Dave said:
I'm looking for a method to force a user to have the option of saving
a
file
to their HD no matter what browser they are using. I am familiar with
compressing a file and that offering a compressed file works. But I
will
not
be updating or uploading the file to the server. I'm just a person to
find
a
solution to the challenge; but I'm stumped.

The file will only be accessed by a known audience; which prefers the
ability to open files without unzipping.

Using Windows 2000 Server.

Thanks for the help.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top