Got it worked out I think. I want to always force a download.
<cffunction name="downloadFile" access="public" output="false">
<cfargument name="filename" required="yes" type="string">
<cfset fullpath = ExpandPath("UploadedFiles") & "\" & "#ARGUMENTS.filename#">
<cfif FileExists("#fullpath#")>
<cfheader name="Content-Disposition" value="attachment;
filename=#ARGUMENTS.filename#">
<cfcontent file="#fullpath#" type="application/unknown">
</cfif>
</cffunction>
Found a good resource for cfcontent here:
http://www.actcfug.com/index.cfm?fuseaction=TipView&TipID=33
Will
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232780
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54