Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-22 23:50:32

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

txp files (PDFs) don't open in browser, call external app

can’t find the thread where this was discussed… but PDFs uploaded as txp files and presented using file download link tag generate dialog box from browser asking whether you want to save or open the file… as opposed to opening in browser

would like to understand why this behaviour occurs … ?

thanks

Offline

#2 2006-10-23 02:10:19

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: txp files (PDFs) don't open in browser, call external app

Because it’s sent to the browser as a download. That’s expected.

But, opening in the browser would only work for those that have Acrobat configured to do so.

Offline

#3 2006-10-23 08:35:55

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: txp files (PDFs) don't open in browser, call external app

It’s the Mime-Types that make the browser decide what to do (most of the time, anyway; there is also some heuristics emplyed sometimes). We intentionally send a binary mimetype so that the browser downloads it. Future major releases will (probably) see more flexibility in that area, so you can have make browsers handle files (if it knows how to deal with the mimetype).

Offline

#4 2006-10-23 08:55:07

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: txp files (PDFs) don't open in browser, call external app

thanks Mary, Sencer – I don’t have a problem with it … but it is different behaviour to what some users expect with PDFs (i.e. their expectation is for the PDF to open within the browser window immediately but instead they see a dialog box, have to read and make another click)

not a criticism or complaint! just user feedback

Offline

Board footer

Powered by FluxBB