12 Dec 2012 3:31 AM #1
how to provide epub file link
I am providing a image panel and on tap even I am giving the following statement to dowload the 'epub' document.
document.location = 'resources/asset/ebook/Value of Authorized Oracle Support.epub';
In desktop browser it works fine.. the file gets downloaded.. but when browsing through mobile.. the raw binary data gets displayed instead of downloading it.
Please let me know what I am missing here.
14 Dec 2012 5:34 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
It's up to the browser to allow download of a file type. They don't have open support like you would have on a computer.
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
8 Jan 2013 6:02 AM #3
But it is mobile browser.. and I have epub reader installed in my devices.. when I click epub download link.. it just display the binary content.. does not open the epub files.