Are you sure the production server CF service account has access to this directory?
 
Rick
-----Original Message-----
From: Lee Foster [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 10:00 AM
To: [EMAIL PROTECTED]
Subject: RE: trouble downloading file using cfcontent/cfheader

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

[EMAIL PROTECTED]

615-834-1876

http://www.l3enterprises.com

Nashville, TN

-----Original Message-----
From: Daniel Roberts [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 10:08 AM
To: [EMAIL PROTECTED]
Subject: trouble downloading file using cfcontent/cfheader

 

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.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
==^================================================================

Reply via email to