Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specifying the Filename for Server.CreateObject("ADODB.Stream")

Status
Not open for further replies.

FateFirst

Programmer
Apr 15, 2002
212
GB
Hi.

I have a little script that streams files to users if they click on a link using the Server.CreateObject("ADODB.Stream").

Is it possible via this (or any other) to stream a file directly to the user and be able to specify the name of the file.

Example:

I have a folder off the root of a website called 'files' it contains 2 files called:
00001.doc
00002.doc

Now if a user clicks a download link for 00001.doc is there a way where instead of the prompt coming up for them to save 00001.doc locally it actually prompts and I can supply the filename. So despite download 0001.doc it would default the filename to whatever I supply.

Hope that makes sense :p

Thanks.

- FateFirst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top