08-15-2015, 06:08 AM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Oct 2013
Device: N/A
|
[Content Server] Opening PDF in Browser instead of download
I was wondering if there's anyway I can stop the content server from auto downloading PDF books, instead I would like to have the option to open in browser, especially Chrome.
Any help with that ? |
08-15-2015, 12:34 PM | #2 | |
Well trained by Cats
Posts: 30,506
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
PDF is a file, not a page. The whole thing has to 'download' before it can be opened. Inside your browser, it may just happen silently, then use a PDF plugin to render inside the browser. The file then gets marked as a king of trash for cleanup. Want to view again later? Another full download |
|
Advert | |
|
08-15-2015, 12:36 PM | #3 |
Junior Member
Posts: 9
Karma: 10
Join Date: Oct 2013
Device: N/A
|
Yea I understand that, my question is how to modify the htaccess or headers to enable Chrome or other browsers to do that instead of just downloading it
|
08-15-2015, 01:13 PM | #4 | |
Well trained by Cats
Posts: 30,506
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
some PDFs behaved poorly under Firefox (on XP), I changed a setting to always open in an external viewer (the flip of what you want). |
|
08-15-2015, 06:10 PM | #5 | |
null operator (he/him)
Posts: 21,111
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
Advert | |
|
08-15-2015, 11:58 PM | #6 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
As discussed in that thread, files that use "Content-Disposition: attachment" will not open in the builtin PDF viewer in Firefo and presumably Chrome.
I can confirm calibre delivers files using "Content-Disposition: attachment". Code:
[eschwartz@arch ~]$ curl -I "http://127.0.0.1:8080/get/pdf/Clan%20Rathskeller%20-%20Kevin%20Hearne_726.pdf" HTTP/1.1 200 OK Content-Length: 151661 Content-Disposition: attachment; filename="Clan Rathskeller - Kevin Hearne_726.pdf" Server: calibre/2.34.0.r24.g66b9085 Last-Modified: Thu, 06 Aug 2015 05:05:32 GMT Date: Sun, 16 Aug 2015 02:55:10 GMT Content-Type: application/pdf |
08-16-2015, 12:01 AM | #7 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Google Chrome extension to disable Content-Disposition: https://chrome.google.com/webstore/d...clipplfi?hl=en
|
Tags |
content server, pdf |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Read e-books in content server not download | alfaboy23 | Library Management | 6 | 02-25-2015 03:34 AM |
Browser / Content Server Issue | Sardog | Related Tools | 3 | 02-02-2014 03:11 AM |
Content Server Download Template | Maggie-Me | Calibre | 2 | 07-01-2012 02:42 PM |
Content server download doesn't complete on Blackberry | jsm555 | Devices | 0 | 03-13-2012 03:42 AM |
How do I configure the calibre content server to download news? | fabian | Library Management | 18 | 04-24-2011 03:01 PM |