Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > download link

download link
Thread Tools
Dedicated MacNNer
Join Date: Nov 2000
Location: Netherlands
Status: Offline
Reply With Quote
May 6, 2003, 07:52 AM
 
This is probably a really simple question, but for the moment I can't seem to find the answer. I want to put a vcard-file on my website, so people can download this and use it in their addressbook or organizer. But if I use a normal link, Opera 7 and Netscape 7 (Win) show the text instead of a save-window.

Is it possible to make a link so that the file behind it will always be downloaded instead of opened in the browser?
"Chance is irrelevant. We will succeed."
== 7 of 9 ==
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
May 6, 2003, 08:28 AM
 
If you have access to the server's configuration, or you know a bit of scripting, you can create a default mime type for a certain suffix.

So (for example) a file called card.vc could be mapped to a bogus type of 'application/x-custom-vcard' so any browser that requests it will bypass most of its inbuilt handlers and, in most instances, ask you what you'd like to do with that file.

Or you could change things at server level and create a script that forces a "Content-Disposition" header with the content of "attachment; filename= yourfilegoeshere.vc"

What kind of setup do you have? More information, please!
Computer thez nohhh...
     
Mac Elite
Join Date: Feb 2003
Location: columbus, oh
Status: Offline
Reply With Quote
May 6, 2003, 08:53 AM
 
What I had to do unfortunately was make a .zip file out of my vcf card and included instructions on it.
"Another classic science-fiction show cancelled before its time" ~ Bender

15.2" PowerBook 1.25GHz, 80GB HD, 768MB RAM, SuperDrive
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:29 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2