Where is the cfc? I think I missed where he said he was using a cfc.

On 2/18/06, Rick Root <[EMAIL PROTECTED]> wrote:
>
> Outputting data to the browser from within a CFC is BLASPHEMY!
>
> Someone, please make him stop!
>
> Will Tomlinson wrote:
> > 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:232823
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to