ASP Force Download of file from webserver

J

JP SIngh

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
 
R

Ray Costanzo [MVP]

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
 

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

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top