View Single Post
Old 06-04-2017, 06:50 AM   #414
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
I can probably create a special file name including endpoint for the mobile view so it works with the Kobo. Does the filename have to be part of the path or can it be a query parameter?
This triggered a memory. I have run into this problem with other devices and browsers, IIRC old windows and android phones. What worked the best for me was to add a pseudo filename at the end of the "real" URL. Something like
Code:
http://foo.com:1234/real/api/stuff/foo.txt
where /foo.txt was ignored by the server. Query strings didn't work.

In a few cases I had problems if the name in the content disposition header didn't match the name in the trailing segment of the URL path. I never did figure out why.
chaley is offline   Reply With Quote