Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-29-2008, 06:04 PM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,843
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Can't get CSV file to download in Internet Explorer

For managing our mailing list, I generate a CSV file using PHP. This file is password protected and can only be accessed by an authenticated user. However, although the file downloads correctly in Firefox, it will not open in Internet Explorer. The error message we get is "Internet Explorer cannot download test.csv from www.ticketwarehouse.com - Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."

The file is at: https://www.ticketwarehouse.com/test.csv

This file is identical to the mailing list, except it doesn't have the authentication feature enabled, and pulls public data from a generalized database. Just like the mailing list file, it works perfectly in Firefox.

Any ideas?
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #2 (permalink)  
Old 09-29-2008, 09:28 PM
Web-Design-Guy's Avatar
WebProWorld Member
 

Join Date: Jun 2008
Location: Perth, Western Australia
Posts: 75
Web-Design-Guy RepRank 0
Default Re: Can't get CSV file to download in Internet Explorer

Could it be something to do with setting an appropriate 'helper app' in IE for that file extension? I'm on Mac so my terminology may be different.

Oddly enough I had the exact opposite problem a while back whereby only IE would DL such a file - blank screen in FF, Safari and all other browsers I tried.
Reply With Quote
  #3 (permalink)  
Old 09-30-2008, 11:24 AM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,843
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: Can't get CSV file to download in Internet Explorer

The helper app should be Microsoft Excel, which is launched correctly by Firefox. I tried changing the Content-Type header to application/vs.ms-excel but that just caused the error message to come from Excel instead of Internet Explorer. Chrome and Safari just try to open the file in the browser regardless.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #4 (permalink)  
Old 09-30-2008, 03:11 PM
Dubbya's Avatar
WebProWorld 1,000+ Club
 

Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,396
Dubbya RepRank 3Dubbya RepRank 3Dubbya RepRank 3
Default Re: Can't get CSV file to download in Internet Explorer

Since you're running PHP, this article might help:
Making IE Accept File Downloads - Joseph Scott’s Blog


Microsoft has a workaround for IIS if that's of any use:
Err Msg: Internet Explorer Could Not Download <Filename>...

Good Luck.
__________________
Printer ink, inkjet & toner cartridges in Canada
"Price-wise printing supplies"
inkjetOasis.ca
Reply With Quote
  #5 (permalink)  
Old 09-30-2008, 03:57 PM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,843
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: Can't get CSV file to download in Internet Explorer

Thanks Dubbya, the solution from Joseph Scott worked perfectly! I never would have thought I had to go through so much just to get one browser to accept a file, but thanks! Seems to be working perfectly now.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #6 (permalink)  
Old 09-30-2008, 08:23 PM
Web-Design-Guy's Avatar
WebProWorld Member
 

Join Date: Jun 2008
Location: Perth, Western Australia
Posts: 75
Web-Design-Guy RepRank 0
Default Re: Can't get CSV file to download in Internet Explorer

Also news to me!

Anyway, glad you got it working.
Reply With Quote
  #7 (permalink)  
Old 10-01-2008, 11:07 AM
Dubbya's Avatar
WebProWorld 1,000+ Club
 

Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,396
Dubbya RepRank 3Dubbya RepRank 3Dubbya RepRank 3
Default Re: Can't get CSV file to download in Internet Explorer

Glad to help!
__________________
Printer ink, inkjet & toner cartridges in Canada
"Price-wise printing supplies"
inkjetOasis.ca
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer 7 drummin Graphics & Design Discussion Forum 13 12-22-2006 10:06 AM
Internet Explorer 7.0 countryjoe IT Discussion Forum 4 12-13-2006 12:55 PM
Download file manager bonaventure Graphics & Design Discussion Forum 2 07-05-2005 04:51 PM
Internet Explorer Pop-ups pedstersplanet Internet Security Discussion Forum 30 07-12-2004 06:52 PM
Download mp3 file from flash movie? richj55 Flash Discussion Forum 4 03-02-2004 03:32 AM


Search Engine Optimization by vBSEO 3.2.0