View Single Post
Old 08-01-2014, 03:13 AM   #1
french imp
Member
french imp began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jul 2012
Device: kobo
page to download an epub to my kobo

Hello,
I have created a php page to download an epub, using headers commands
like this:

PHP Code:
header('Content-type: application/zip');
header("Content-Disposition: attachment; filename=\"$filename\"");
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
readfile($fullPathOfFile); 
and it works nice when I visit the page with my PC. However it doesn't work with the browser of my Kobo Aura, and consequently I can't download my epubs to my e-reader, which was the whole point.
I guess somehow the headers are wrong, could anybody please help me out with this?
Thanks in adavance, French Imp
french imp is offline   Reply With Quote