android - cfheader cfcontent Mobile Browser download unsuccessful -
i'm serving .epub file download without displaying url client. code below works in browser on pc/mac not work in mobile browsers, @ least in android have testing currently. 'download unsuccessful' message every time. ideas???
code:
<cfheader name="content-disposition" value="attachment;filename=#authstuff.lastname#-#thetitle#.epub" /><cfcontent type="application/unknown" file="d:\home\sample.net\booksource\#book.epub#">
all examples i've seen , used ave space between attachment; , filename, try:
<cfheader name="content-disposition" value="attachment; filename=#authstuff.lastname#-#thetitle#.epub" />
also, use firebug or fiddler make sure header coming through unaltered. desktop browsers prompt save right filename?
edit: tried code out on ios pdf , happily consumed pdf, space may red herring, makes me think it's worth trying out code below try see if it's epub thing or headers thing:
<cfheader name="content-disposition" value="attachment;filename=something.pdf" /> <cfcontent type="application/unknown" file="#expandpath('something.pdf')#">
Comments
Post a Comment