First up big thanks to vlad59 - this is just what I was looking for and works a treat.
Just one thing to add to the Synology instructions provided, I found that on my kobo glo although it would pop up the download confirmation box, no book would appear in the library on the reader.
To resolve this I updated the readfile line, as follows:
//readfile($config['calibre_internal_directory'] . $file);
header('Content-Length: ' . filesize($config['calibre_internal_directory'] . $file));
fpassthru(fopen($config['calibre_internal_directory'] . $file, 'rb'));
not sure why this is the case, but it all works great now..! :-)
|