Save in box destination path

P

poussy-puce

Hi, I would like to choose destination path when user download file on
her computer...
I have code for the download, but I don't find code or component for
change the destination on the Save in box...

In VB 6.0 it have a component for this, the name of this component is
'Common Dialog Control'

The code for my download:

Set objFile = objFSO.GetFile(strFileName)
Response.Clear()
Response.AddHeader "Content-Disposition", "attachment; filename=" &
objFile.Name
Response.AddHeader "Content-Length", objFile.Size
Response.ContentType = "application/octet-stream"
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = 1
Response.CharSet = "UTF-8"
objStream.LoadFromFile(strFileName)
Response.BinaryWrite(objStream.Read)
objStream.Close
Set objStream = Nothing
Set objFile = Nothing


Thank you for your help, and scuse my very bad english!
:)
 
R

Ray Costanzo [MVP]

Aside from creating some sort of client-side ActiveX plugin, and then
convincing your users to trust it and install it, you cannot control where
someone saves a file on his computer. Your Web server can only offer the
file to the user. It's then up the user to decide whether or not he wants
to accept it, and if so, where he wants to save it (if not just opening it).

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,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top