|
Maybe it
is the mime type. Try this and see
what happens. <cfif
session.username IS "Admin"> <cfheader name="content-disposition"
value="attachment; filename=Legsdata.mdb"> <cfcontent type="application/msaccess"
file="D:\ODBC_data\HLC\Legsdata.mdb" deletefile="No"> <cfelse> <font color=red>Only Admin can download this
file.</font> </cfif> Lee Foster (e)consultant, Web developer, Web Architect 615-834-1876 Nashville, TN -----Original
Message----- 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"> <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.bVUysT 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 ==^================================================================ ==^================================================================ 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 ==^================================================================ |
- fusebox.TargetCircuit Tom Schreck
- trouble downloading file using cfcontent/cfheader Daniel Roberts
- RE: trouble downloading file using cfcontent/cfhe... Lee Foster
- RE: trouble downloading file using cfcontent/... Richard Lamb
- Re: trouble downloading file using cfcontent/... Daniel Roberts
- RE: fusebox.TargetCircuit Barney Boisvert
