You need a MIME type added to the web server: .apk - application/vnd.android.package-archive
-Jake On Thu, Nov 10, 2011 at 11:34 AM, Dave Watts <[email protected]> wrote: > > > We have our Android app built and the .apk file is on our CF7 server. > > I'm using cfheader and cfcontent to get the file to download via a link. > > But install on my phone fails. The app comes in as <UNKNOWN> and throws > an error about unknown file size. > > > > When I click the link in a desktop browser, I get the correct file > downloaded as expected. > > > > Has anyone done this yet? What am I missing? > > > > Code: > > > > cfheader name="Content-Disposition" value="attachment; > filename=myNewApp.apk" > > cfcontent file="#expandPath('pathToFile/file.apk')#" > > I'd recommend trying the download using just your web server, and > comparing the HTTP response headers between the two downloads. I don't > know if CFCONTENT returns a Content-Length response header - you might > need that. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or onsite. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348568 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

