<CFFILE action="read"> takes a absolute path for it's file attribute.  You
are sending it a URL.

Jeff
----- Original Message -----
From: "Mitko Gerensky-Greene" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 2:59 PM
Subject: Urgent: Need help with a CFFILE error


Hello,

I am uploading an application which was built by the previous team and now I
have to resolve some issues...

Here is the page:
http://webapps1.hud.gov/pih/pha/plans/approved/approved_plans.cfm

When there, select a state from the drop down menu and then it takes you to:

http://webapps1.hud.gov/pih/pha/plans/approved/view_approved_plans.cfm

Here is the segment of code from view_approved_plans.cfm:

        <cfset CURRENTDIRECTORY = #GETDIRECTORYFROMPATH(GETTEMPLATEPATH())#>
        <cfoutput>
          <!--
FILE="http://www2.hud.gov/pih/pha/plans/approved/#fiscalyear#/#statecode#_#f
iscalyear#.txt" -->
          <cfif #statecode# NEQ "0">
          <cffile action="Read"
file="http://www.hud.gov/offices/pih/pha/approved/#fiscalyear#/#statecode#_#
fiscalyear#.txt"
variable="phacodeoff">
          <cfset codeofflist=ListToArray(phacodeoff,";")>
          </cfif>
        </cfoutput>

And here is the error I am getting:

Error Diagnostic Information
Error processing CFFILE

Error attempting to read
'http://www.hud.gov/offices/pih/pha/approved/02/al_02.txt.' No such file or
directory (error 2)

The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (449:11) to (451:25).


Date/Time: Thu Sep 19 17:41:05 2002
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95; YComp 5.0.0.0)
Remote Address: 10.200.36.101
HTTP Referrer:
http://webapps1.hud.gov/pih/pha/plans/approved/approved_plans.cfm


Now, I have no clue why is there a dot in the end of the file name which is
being read:
'http://www.hud.gov/offices/pih/pha/approved/02/al_02.txt.'

If you go to http://www.hud.gov/offices/pih/pha/approved/02/al_02.txt you
will see that the file is there.

Any help will be appreciated!

Thanks,

Mitko

PS. I think the app server is ColdFusion 5 on Netscape Enterprise Server.

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to