|
-
Apr 4th, 2002, 03:54 AM
#1
Thread Starter
Hyperactive Member
Make a file download, instead of opening??
I have a file on my webserver.
I want this file to download when the user clicks the link, not open it in the browser window...
Can I force it to download??
/Smirre
Visual Basic
C, C++
Java
Access
SQL Server
MCP, MCSD
-
Apr 4th, 2002, 07:54 AM
#2
Fanatic Member
easiest thing to do is just zip it.
-
Apr 4th, 2002, 08:01 AM
#3
Thread Starter
Hyperactive Member
I would perfer not to zip it...
/Smirre
Visual Basic
C, C++
Java
Access
SQL Server
MCP, MCSD
-
Apr 4th, 2002, 10:21 PM
#4
waht is the file extension?
if it is a known file extension on the users computer you don't have a choice. but if the file us unknown then they would be able to.
-
Apr 5th, 2002, 12:36 AM
#5
Thread Starter
Hyperactive Member
Its a PDF file. So it opens in the browser. I was thinking if there was any way to "activate" the save target as on the right click menu when the users click on the link.
/Smirre
Visual Basic
C, C++
Java
Access
SQL Server
MCP, MCSD
-
Apr 5th, 2002, 12:47 AM
#6
you don't have any control over the file extension per say the user downloading it. if they have acrobat reader installed it will open it and not download it. all you can do is say on your page is "right click and save target" or right click "Save As for NS.
-
Apr 5th, 2002, 03:09 AM
#7
Fanatic Member
Try getting around it...
Instead of just linking straight to a file create a new server side script, ASP or PHP would be good. Then create some code to the rename the file to a unknown ext, download it, and rename it back afterwards.
I know its a bit sloppy but it works.
-
Apr 5th, 2002, 07:30 AM
#8
PowerPoster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|