If you are using UNC paths then you need to run CF under a user account with rights to 
the folder on the other server.  By default,
CF runs under the system account.  You can change this in the NT Services applet.

HTH,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - The Intelligent Mail Server


----- Original Message -----
From: "Foggy, Doreen" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 11:43 AM
Subject: CFFILE


> Error Diagnostic Information
> Error processing CFFILE
> The directory specified in the DESTINATION attribute of the CFFILE tag
> chh-test\www\lmts_int\cic is not valid. The directory either does not exist
> or is not accessible by the ColdFusion service.
> The error occurred while processing an element with a general identifier of
> (CFFILE), occupying document position
>
>
> I am using the CFFILE tag for the first time and I am running into some
> problems.  Please Help!  The directory does exist and I am not sure what
> accessible by the ColdFuison service means.  The directory is located on the
> web server.
> * I have two forms
> * upload.cfm (html form)
> * uploadfile.cfm (action page)
>
> The syntax for both is located below:
>
> Upload.cfm
> <title>WebStar: Contracts Online</title>
> </head>
> <body background="image/background_blue.gif" text="White" link="Silver"
> vlink="Yellow" alink="White">
> <img src="image/file.gif" width="1200" height="50" border="0" alt="">
> <!--- This document was created with Cold Fusion Studio --->
> <FORM ACTION="uploadfile.cfm" ENCTYPE="multipart/form-data"METHOD=POST>
>   <table
>   border="0">
>     <tr>
>       <td>File to upload:</td>
>       <td>
>         <input name="FileName" size=50 type=FILE>
>       </td>
>     </tr>
>     <tr>
>       <td>File Destination:</td>
>       <td>
>   <input type="text" name="FileDestination"
> value="\\chh-test\www\lmts_int\cic" size="50">
>        <input type=SUBMIT size=50 value="Upload" name="SUBMIT">
>       </td>
>     </tr>
>   </table>
>   &nbsp;
> </FORM>
> </BODY>
> </HTML>
>
> Upload.cfm
> <title>WebStar: Contracts Online</title>
> </head>
> <body background="image/background_blue.gif" text="White" link="Silver"
> vlink="Yellow" alink="White">
> <img src="image/file.gif" width="1200" height="50" border="0" alt="">
> <!--- This document was created with Cold Fusion Studio --->
> <cffile action="UPLOAD"
>         filefield="FileName"
>         destination="#form.FileDestination#"
>         nameconflict="OVERWRITE">
> <CFOUTPUT>
> <CENTER>
> CF 3.1 CFFILE Tag File Upload Demonstration Results - Example 1<P>
> File Upload was Successful! Information about the file is detailed below.
> </CENTER>
> <HR>
> <TABLE>
> <CAPTION><B>File Information</B></CAPTION>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>File
> Name:</TH><TD>#File.ServerDirectory#\#FILE.ServerFile#</TD>
> <TH VALIGN=top ALIGN=LEFT>Content Type:</TH><TD>#File.ContentType#</TD>
> </TR>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>Content SubType:</TH>
> <TD>#File.ContentSubType#</TD>
> <TH VALIGN=top ALIGN=LEFT>Client Path:</TH> <TD>#File.ClientDirectory#</TD>
> </TR>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>Client File:</TH><TD>#File.ClientFile#</TD>
> <TH VALIGN=top ALIGN=LEFT>Client
> FileName:</TH><TD>#File.ClientFileName#</TD>
> </TR>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>Client FileExt:</TH><TD>#File.ClientFileExt#</TD>
> <TH VALIGN=top ALIGN=LEFT>Server Path:</TH><TD>#File.ServerDirectory#</TD>
> </TR>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>Server File:</TH><TD>#File.ServerFile#</TD>
> <TH VALIGN=top ALIGN=LEFT>Server
> FileName:</TH><TD>#File.ServerFileName#</TD>
> </TR>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>Server FileExt:</TH><TD>#File.ServerFileExt#</TD>
> <TH VALIGN=top ALIGN=LEFT>Attempted
> ServerFile:</TH><TD>#File.AttemptedServerFile#</TD>
> </TR>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>File Existed?</TH><TD>#File.FileExisted#</TD>
> <TH VALIGN=top ALIGN=LEFT>File Was Saved?</TH><TD>#File.FileWasSaved#</TD>
> </TR>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>File Was
> Overwritten?</TH><TD>#File.FileWasOverWritten#</TD>
> <TH VALIGN=top ALIGN=LEFT>File Was
> Appended?</TH><TD>#File.FileWasAppended#</TD>
> </TR>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>File Was
> Renamed?</TH><TD>#File.FileWasRenamed#</TD>
> <TH VALIGN=top ALIGN=LEFT>File Size:</TH><TD>#File.Filesize#</TD></TH>
> </TR>
> <TR>
> <TH VALIGN=top ALIGN=LEFT>Old File Size:</TH><TD>#File.OldFileSize#</TD>
> <TH VALIGN=top align=LEFT>Date Last
> Accessed:</TH><TD>#DateFormat(File.DateLastAccessed,'DD MMM YY')#</TD>
> </TR>
> <TR>
> <TH VALIGN=top align=LEFT>Date/Time
> Created:</TH><TD>#DateFormat(File.TimeCreated,'DD MMM YY')#
> #Timeformat(File.TimeCreated,'HH:MM:SS')#</TD>
> <TH VALIGN=top align=LEFT>Date/Time
> Modified:</TH><TD>#DateFormat(File.TimeLastModified,'DD MMM YY')#
> #Timeformat(File.TimeLastModified,'HH:MM:SS')#</TD>
> </TR>
> </TABLE>
> </CFOUTPUT>
> </BODY>
> </HTML>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to