By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,874 Members | 1,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,874 IT Pros & Developers. It's quick & easy.

ASP Force Download of file from webserver

P: n/a
Hi All

I am creating an asp application which is essentially a file management app.

I am trying to get my head around a technically issue wonder if someone can
offer some help.

I want to be able to force the download of the files are attached to a
particular record.

The code which i use to force the download is

<%
strPath = "C:\MyFiles"
Set Upload = Server.CreateObject("Persits.Upload")
' Build path to file
strPath = uploadfilepathactual
Path = strPath & "\" & strFileName
Upload.SendBinary Path, True, "application/octet-binary", True
%>

I want to be able to change the path to say something like

strPath = \\servername\c$\myfiles

Is the above possible. Any other alternatives.

Regards
Jas
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I'm not sure how your upload thing is relating to forcing a download or how
the UNC path is tying in here. What are you trying to do?

Ray at work

"JP SIngh" <no**@none.com> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
Hi All

I am creating an asp application which is essentially a file management app.
I am trying to get my head around a technically issue wonder if someone can offer some help.

I want to be able to force the download of the files are attached to a
particular record.

The code which i use to force the download is

<%
strPath = "C:\MyFiles"
Set Upload = Server.CreateObject("Persits.Upload")
' Build path to file
strPath = uploadfilepathactual
Path = strPath & "\" & strFileName
Upload.SendBinary Path, True, "application/octet-binary", True
%>

I want to be able to change the path to say something like

strPath = \\servername\c$\myfiles

Is the above possible. Any other alternatives.

Regards
Jas

Jul 22 '05 #2

P: n/a
You could put the file in a zip file or perhaps check this out:

How do I prompt a "Save As" dialog for an accepted mime type?
http://www.aspfaq.com/show.asp?id=2161

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.