I'm having trouble with the code below. I have a link in to an access file no on the webroot. This code works fine on our development server but not on our live server. I also added the code "<cfoutput>#cfusion_dbconnections_flush()#</cfoutput>" above the cfheader call just incase it was a locking problem or something but it didn't change anything. I've also tried changing the type but that didn't help.
 
I've read about bugs but i'm very confused because it works on one server and not on the other but I'm accessing it with the same brower, so it can't be a browser problem. Both servers are CF5.
 
Thanks
 
===================================================================
Code:
---------------------------------------
 
<cfif session.username IS "Admin">
 
    <CFHEADER NAME="content-disposition" VALUE="attachment; filename=Legsdata.mdb">
    <cfcontent File="D:\ODBC_data\HLC\Legsdata.mdb" type="application/unknown" deletefile="No">
<cfelse>
    <font color=red><b>Only Admin can download this file.</b></font>
</cfif>
 
---------------------------------------
 
Returned to the browser:
 
</BODY></HTML>
 
---------------------------------------
==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to