genericuser3 Posted October 8, 2008 Share Posted October 8, 2008 Hi! A client wants me to add a link on their site so visitors can download their VCards. She sent me the files, I uploaded the .vcf files, created the link on the page, uploaded the page -- but when the link is clicked a new page opens with the Vcard information. This isn't supposed to happen - I should get a dialog box asking me what I want to do with the *.vcf file. When I test the page locally the file works as expected. But when it's on the TCH server it does not work -- Any suggestions? Ideas? Thanks. Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted October 8, 2008 Share Posted October 8, 2008 Welcome to the forums genericuser3 According to this all you should need to do is create a hyperlink to the .vcf file. If the card is opening instead of you being asked for it to be downloaded then what ever you are using to view the link has been set as the default application to open the file. Quote Link to comment Share on other sites More sharing options...
TCH-Thomas Posted October 8, 2008 Share Posted October 8, 2008 Welcome to the forum, genericuser3. Quote Link to comment Share on other sites More sharing options...
genericuser3 Posted October 8, 2008 Author Share Posted October 8, 2008 Thanks, yes, that is where I got my information - but - for some reason it works when I view it via Dreamweaver/Firefox locally on my hard drive but when I view the live page via Firefox the link opens as a page in my browser... here is the link: http://daly-web.com/strategic/test/html/contact.html Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted October 8, 2008 Share Posted October 8, 2008 Well that's odd, in Firefox it does as you say but if you test it in IE it prompts. Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted October 8, 2008 Share Posted October 8, 2008 Here is something for you to try. Add %20 for the space character between the first and last name of the file name. Change: ><a href="Andrea Wandersee.vcf">Download V-Card</a> To: ><a href="Andrea%20Wandersee.vcf">Download V-Card</a> Quote Link to comment Share on other sites More sharing options...
genericuser3 Posted October 8, 2008 Author Share Posted October 8, 2008 Here is something for you to try. Add %20 for the space character between the first and last name of the file name. Change: ><a href="Andrea Wandersee.vcf">Download V-Card</a> To: ><a href="Andrea%20Wandersee.vcf">Download V-Card</a> Thanks, yes I removed the space and tired adding 20%, still no joy. Originally the client emailed me the files, I thought possibly the files were corrupt so I just created a vcard from my address book, uploaded it and still I get window not a dialog box. Are you guys sure that it's not an issue with the server? Quote Link to comment Share on other sites More sharing options...
genericuser3 Posted October 8, 2008 Author Share Posted October 8, 2008 (edited) Ok I just tested the page on another server - not TCH and everything works exactly as it should: Andrea and Test have files attached the others don't-- ............... So it's possibly a problem on your server?? I was going to move this client to TCH - but I can't if this Vcard will not work. Can someone look into this a bit more? Edited October 8, 2008 by genericuser3 Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted October 8, 2008 Share Posted October 8, 2008 I don't see how it can be a server related issue when I test with IE it prompts to download. If you would like someone to look into it further you will have to open a ticket with the help desk. You can find a link at the top of this page or in my signature. Quote Link to comment Share on other sites More sharing options...
genericuser3 Posted October 8, 2008 Author Share Posted October 8, 2008 I don't see how it can be a server related issue when I test with IE it prompts to download. If you would like someone to look into it further you will have to open a ticket with the help desk. You can find a link at the top of this page or in my signature. Do both links work for you? The second one works form me and that is not on your server. So do both work or just the second one? Quote Link to comment Share on other sites More sharing options...
TCH-Thomas Posted October 8, 2008 Share Posted October 8, 2008 Both works for me (they did not before). I would as Bruce says, open a ticket and ask the techs to look in to this, and refer to this thread if needed. Quote Link to comment Share on other sites More sharing options...
genericuser3 Posted October 8, 2008 Author Share Posted October 8, 2008 Both works for me (they did not before). I would as Bruce says, open a ticket and ask the techs to look in to this, and refer to this thread. Thanks for the help everyone. Quote Link to comment Share on other sites More sharing options...
TCH-Dick Posted October 8, 2008 Share Posted October 8, 2008 The server sees the vcard as a text file therefore when FF checks the MIME Type it also sees it as a text file. This is corrected by adding a custom MIME Type via your cPanel under Advanced Option > MIME Types. The custom MIME type should be created with the settings MIME Type: text/x-vcard and Extension: vcf . However, I have already added this MIME type for you, just clear your cache in FF and try again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.