Problem with excel download in firefox

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

Problem with excel download in firefox

Postby danielschut » Sun Aug 12, 2012 4:00 pm

Hi,

I have written a new blogpost which ends with a downloadlink to an .xlsx-file. The downloadlink seems to work perfectly in Chrome, IE and Opera, but in Firefox, the browser treats the .xlsx-file as a txt-file and opens it in a new tab - turning up weird scribbels and what not in stead of the beautiful thingy I've made.

See the blogpost here:
http://deluistervinken.nl/archive/2012- ... eeft-de-sp

Scroll down to the following sentence for the downloadlink:

"Download de CoalitieCalculator hier."

Does anyone know what Firefox is doing and what I can do to enable smooth downloading?

Thanks in advance!
danielschut
 
Posts: 58
Joined: Tue Jun 02, 2009 4:42 pm

Re: Problem with excel download in firefox

Postby Harm10 » Mon Aug 13, 2012 6:17 am

I see that you are still on release 2.3.1. Maybe you should upgrade first to the current release (2.3.3)?
Quality is in the detail of things............
Harm10
Developer
 
Posts: 1601
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Problem with excel download in firefox

Postby danielschut » Mon Aug 13, 2012 12:13 pm

ok - stupid question, how do I do this easily?
danielschut
 
Posts: 58
Joined: Tue Jun 02, 2009 4:42 pm

Re: Problem with excel download in firefox

Postby hansfn » Mon Aug 13, 2012 12:37 pm

Even if upgrading is recommend, it's completely unrelated because this isn't related to PivotX at all.

Your web server is serving the XLSX file as a text file. If you look at the response headers, you'll see "Content-Type: text/plain". Firefox is then doing the right thing (TM), displaying it as text - which of course looks like garbage since it's a binary file. The other browsers ignores the content type and just looks at the file extension and the header of the file and decides it's not a text file at all ...

Talk to you sysadmin/hoster and make them set the correct content type for XLSX files.

PS! A work-around is to insert "Right-click and select 'Save as'" in the download link. If people do that, the file won't be displayed in the browser.
hansfn
Developer
 
Posts: 3072
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Problem with excel download in firefox

Postby Harm10 » Mon Aug 13, 2012 9:15 pm

danielschut wrote:ok - stupid question, how do I do this easily?

If you didn't customize anything then it's simple. Just download the new release, unzip it and upload the files taking into account that you set the right overwrite option (only newer files). This is assuming your hoster keeps the original file date when uploading a file. If he doesn't then your only way to upgrade is to overwrite always.
No files concerning content will be overwritten.
Quality is in the detail of things............
Harm10
Developer
 
Posts: 1601
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Problem with excel download in firefox

Postby danielschut » Mon Aug 20, 2012 3:44 pm

If this were StackExchange, I would nominate HansFN's answer as most useful, thanks!
danielschut
 
Posts: 58
Joined: Tue Jun 02, 2009 4:42 pm


Return to 2.x Support Forum

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron