Re: CFFILE ERROR

2010-11-10 Thread Monique Boea

I found it:

maxContentID is the name of the query

#ExpandPath('/contentFiles/#*maxContentID*#_#language#.cfm')#

This works

#ExpandPath('/contentFiles/#*maxContentID**.contentID*#_#language#.cfm')#




On Tue, Nov 9, 2010 at 8:47 PM, Dave Watts dwa...@figleaf.com wrote:


  I have a file that is creating a CF template using the following code:
 
 cfloop Query=languages
   cffile
   action = write
 *file =
  #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')# *
 output = #Evaluate( #language#TEXT )#
 nameconflict=overwrite
  /cfloop
 
  It used to work fine but all of a sudden the red line is causing the
  following error:
 
  *Complex object types cannot be converted to simple values.
  The expression has requested a variable or an intermediate expression
 result
  as a simple value. However, the result cannot be converted to a simple
  value. Simple values are strings, numbers, boolean values, and date/time
  values. Queries, arrays, and COM objects are examples of complex values.
 
  The most likely cause of the error is that you tried to use a complex
 value
  as a simple one. For example, you tried to use a query variable in a cfif
  tag. *
 
  Any suggestions?

 First, I'd suggest that you not use nested hashes. Instead of this:

 #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')#

 use this:

 #ExpandPath('/contentFiles/'  maxContentID  '_'  language  '.cfm')#

 However, I don't think that's the cause of your problem. Instead, I
 suspect that one of your variables contains something other than what
 you think it does. Use CFDUMP to see what's in those variables.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our tr

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339073
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFILE ERROR

2010-11-09 Thread Dave Watts

 I have a file that is creating a CF template using the following code:

    cfloop Query=languages
          cffile
              action = write
            *file =
 #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')# *
            output = #Evaluate( #language#TEXT )#
            nameconflict=overwrite
     /cfloop

 It used to work fine but all of a sudden the red line is causing the
 following error:

 *Complex object types cannot be converted to simple values.
 The expression has requested a variable or an intermediate expression result
 as a simple value. However, the result cannot be converted to a simple
 value. Simple values are strings, numbers, boolean values, and date/time
 values. Queries, arrays, and COM objects are examples of complex values.

 The most likely cause of the error is that you tried to use a complex value
 as a simple one. For example, you tried to use a query variable in a cfif
 tag. *

 Any suggestions?

First, I'd suggest that you not use nested hashes. Instead of this:

#ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')#

use this:

#ExpandPath('/contentFiles/'  maxContentID  '_'  language  '.cfm')#

However, I don't think that's the cause of your problem. Instead, I
suspect that one of your variables contains something other than what
you think it does. Use CFDUMP to see what's in those variables.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our tr

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339062
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFILE ERROR

2010-11-09 Thread Monique Boea

Ok thanks Dave,

On Tue, Nov 9, 2010 at 8:47 PM, Dave Watts dwa...@figleaf.com wrote:


  I have a file that is creating a CF template using the following code:
 
 cfloop Query=languages
   cffile
   action = write
 *file =
  #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')# *
 output = #Evaluate( #language#TEXT )#
 nameconflict=overwrite
  /cfloop
 
  It used to work fine but all of a sudden the red line is causing the
  following error:
 
  *Complex object types cannot be converted to simple values.
  The expression has requested a variable or an intermediate expression
 result
  as a simple value. However, the result cannot be converted to a simple
  value. Simple values are strings, numbers, boolean values, and date/time
  values. Queries, arrays, and COM objects are examples of complex values.
 
  The most likely cause of the error is that you tried to use a complex
 value
  as a simple one. For example, you tried to use a query variable in a cfif
  tag. *
 
  Any suggestions?

 First, I'd suggest that you not use nested hashes. Instead of this:

 #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')#

 use this:

 #ExpandPath('/contentFiles/'  maxContentID  '_'  language  '.cfm')#

 However, I don't think that's the cause of your problem. Instead, I
 suspect that one of your variables contains something other than what
 you think it does. Use CFDUMP to see what's in those variables.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our tr

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339065
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cffile error: String index out of range: -1

2008-07-10 Thread James Holmes
The fileField parameter is incorrect - just use the name of the form element:

fileField=fileName

On Thu, Jul 10, 2008 at 4:45 PM, Kamru Miah [EMAIL PROTECTED] wrote:
 While using cffile upload, I seems to be getting 'String index out of range: 
 -1' after the file is placed in the application directory. All the required 
 parameters are given as stated in the docs. Could someone please advise me 
 what the above error means? The code is given below:
 --
 cffile
  action=upload
  destination=#ExpandPath('.')#
  nameConflict=overwrite
  fileField=form.fileName
  mode=777

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308848
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cffile error: String index out of range: -1

2008-07-10 Thread Qing Xia
I have had the same error before with file upload.  The cause of my
problem was that the destination file path was not exactly correct.

However, in your case since the file is already uploaded to the server then
it must be correct.  I saw that you are using the MODE attribute...could
this be an incompatibility with Linux/Unix?

Maybe try to go back to the basics and see if you can work your way up to a
solution.

Try this:

FORM page:
form action=action.cfm method=post enctype=multipart/form-data
input type=file name=myFile
input type=submit name=submit
/form

ACTION page:
cffile action=upload fileField=myFile destination=#ExpandPath('.')#
cfdump var=#CFFile#

What happens with that?


On Thu, Jul 10, 2008 at 4:45 AM, Kamru Miah [EMAIL PROTECTED] wrote:

 While using cffile upload, I seems to be getting 'String index out of
 range: -1' after the file is placed in the application directory. All the
 required parameters are given as stated in the docs. Could someone please
 advise me what the above error means? The code is given below:
 --
 cffile
  action=upload
  destination=#ExpandPath('.')#
  nameConflict=overwrite
  fileField=form.fileName
  mode=777

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308850
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cffile error: String index out of range: -1

2008-07-10 Thread Kamru Miah
I guess this is a rear error (due to unknown mimetype of file?), but can 
someone tell me how to handle when cffile error, so that user gets a meaningful 
message? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308858
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Cffile Error

2005-12-03 Thread ColdFusion
Does ColdFusion Service have access to the network drive? 
 \\SWPRINT\LAB_HEMA ???



-Original Message-
From: John Lucania [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 1:35 AM
To: CF-Talk
Subject: Cffile Error

 C:\CFusionMX\runtime\bincopy
D:\Inetpub\WWWROOT\BBDatabase\results.txt \\SWPRINT\LAB_HEMA The system
cannot find the file specified.

cfquery name=GetQryList datasource=BloodBank select * from PTBB where
len(MRN) = 7 order by Lname /cfquery cfsavecontent variable=results
table border=0 align=center
  tr
td colspan=6
  div align=centerbAuto-print Testing cfoutputat
#TimeFormat(CreateODBCTime(Now()), HH:mm:ss tt)# on
#DateFormat(CreateODBCDate(Now()), MM-DD-)#/cfoutput/b/div
/td
  /tr
  tr
td bgcolor=CC
  div align=centerbName/b/div
/td
td bgcolor=CC
  div align=centerbABO/b/div
/td
td bgcolor=CC
  div align=centerbRH/b/div
/td
td bgcolor=CC
  div align=centerbAntigen/b/div
/td
td bgcolor=CC
  div align=centerbAntibody/b/div
/td
  /tr
  cfoutput query=GetQryList
tr
  td bgcolor=FF#LName#, #FName#/td
  td bgcolor=FF#ABO#/td
  td bgcolor=FF#RH#/td
  td bgcolor=FF#Antigen#/td
  td bgcolor=FF#Antibody#/td
/tr
  /cfoutput
/table
strong
div align=centercfoutputfont
color=99#GetQryList.RecordCount#/font/cfoutputfont
color=99
  Records Found/font/div
/strong
/cfsavecontent

Cffile action=write
file=D:\Inetpub\WWWROOT\BBDatabase\results.txt output=#results#

cfexecute name=c:\copy.bat 
arguments=D:\Inetpub\WWWROOT\BBDatabase\results.txt
\\SWPRINT\LAB_HEMA outputfile=c:\BBBatch.txt/cfexecute

How do you resolve this error?



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226015
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Cffile Error

2005-12-03 Thread John Lucania
\\SWPRINT\LAB_HEMA is a network printer.

cfexecute works fine as long as there is a file.

I think the issue is Cffile action=write
file=D:\Inetpub\WWWROOT\BBDatabase\results.txt output=#results#
doesn't generate a file.

jl

On 12/3/05, ColdFusion [EMAIL PROTECTED] wrote:
 Does ColdFusion Service have access to the network drive?
  \\SWPRINT\LAB_HEMA ???



 -Original Message-
 From: John Lucania [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 03, 2005 1:35 AM
 To: CF-Talk
 Subject: Cffile Error

  C:\CFusionMX\runtime\bincopy
 D:\Inetpub\WWWROOT\BBDatabase\results.txt \\SWPRINT\LAB_HEMA The system
 cannot find the file specified.

 cfquery name=GetQryList datasource=BloodBank select * from PTBB where
 len(MRN) = 7 order by Lname /cfquery cfsavecontent variable=results
 table border=0 align=center
   tr
 td colspan=6
   div align=centerbAuto-print Testing cfoutputat
 #TimeFormat(CreateODBCTime(Now()), HH:mm:ss tt)# on
 #DateFormat(CreateODBCDate(Now()), MM-DD-)#/cfoutput/b/div
 /td
   /tr
   tr
 td bgcolor=CC
   div align=centerbName/b/div
 /td
 td bgcolor=CC
   div align=centerbABO/b/div
 /td
 td bgcolor=CC
   div align=centerbRH/b/div
 /td
 td bgcolor=CC
   div align=centerbAntigen/b/div
 /td
 td bgcolor=CC
   div align=centerbAntibody/b/div
 /td
   /tr
   cfoutput query=GetQryList
 tr
   td bgcolor=FF#LName#, #FName#/td
   td bgcolor=FF#ABO#/td
   td bgcolor=FF#RH#/td
   td bgcolor=FF#Antigen#/td
   td bgcolor=FF#Antibody#/td
 /tr
   /cfoutput
 /table
 strong
 div align=centercfoutputfont
 color=99#GetQryList.RecordCount#/font/cfoutputfont
 color=99
   Records Found/font/div
 /strong
 /cfsavecontent

 Cffile action=write
 file=D:\Inetpub\WWWROOT\BBDatabase\results.txt output=#results#

 cfexecute name=c:\copy.bat
 arguments=D:\Inetpub\WWWROOT\BBDatabase\results.txt
 \\SWPRINT\LAB_HEMA outputfile=c:\BBBatch.txt/cfexecute

 How do you resolve this error?



 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226021
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Cffile Error

2005-12-03 Thread Bobby Hartsfield
That would definitely cause a problem :) You are missing a quote at the end
of your cffile tag after #results#

~Bobby
 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: John Lucania [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 1:01 PM
To: CF-Talk
Subject: Re: Cffile Error

\\SWPRINT\LAB_HEMA is a network printer.

cfexecute works fine as long as there is a file.

I think the issue is Cffile action=write
file=D:\Inetpub\WWWROOT\BBDatabase\results.txt output=#results#
doesn't generate a file.

jl

On 12/3/05, ColdFusion [EMAIL PROTECTED] wrote:
 Does ColdFusion Service have access to the network drive?
  \\SWPRINT\LAB_HEMA ???



 -Original Message-
 From: John Lucania [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 03, 2005 1:35 AM
 To: CF-Talk
 Subject: Cffile Error

  C:\CFusionMX\runtime\bincopy
 D:\Inetpub\WWWROOT\BBDatabase\results.txt \\SWPRINT\LAB_HEMA The system
 cannot find the file specified.

 cfquery name=GetQryList datasource=BloodBank select * from PTBB
where
 len(MRN) = 7 order by Lname /cfquery cfsavecontent variable=results
 table border=0 align=center
   tr
 td colspan=6
   div align=centerbAuto-print Testing cfoutputat
 #TimeFormat(CreateODBCTime(Now()), HH:mm:ss tt)# on
 #DateFormat(CreateODBCDate(Now()), MM-DD-)#/cfoutput/b/div
 /td
   /tr
   tr
 td bgcolor=CC
   div align=centerbName/b/div
 /td
 td bgcolor=CC
   div align=centerbABO/b/div
 /td
 td bgcolor=CC
   div align=centerbRH/b/div
 /td
 td bgcolor=CC
   div align=centerbAntigen/b/div
 /td
 td bgcolor=CC
   div align=centerbAntibody/b/div
 /td
   /tr
   cfoutput query=GetQryList
 tr
   td bgcolor=FF#LName#, #FName#/td
   td bgcolor=FF#ABO#/td
   td bgcolor=FF#RH#/td
   td bgcolor=FF#Antigen#/td
   td bgcolor=FF#Antibody#/td
 /tr
   /cfoutput
 /table
 strong
 div align=centercfoutputfont
 color=99#GetQryList.RecordCount#/font/cfoutputfont
 color=99
   Records Found/font/div
 /strong
 /cfsavecontent

 Cffile action=write
 file=D:\Inetpub\WWWROOT\BBDatabase\results.txt output=#results#

 cfexecute name=c:\copy.bat
 arguments=D:\Inetpub\WWWROOT\BBDatabase\results.txt
 \\SWPRINT\LAB_HEMA outputfile=c:\BBBatch.txt/cfexecute

 How do you resolve this error?



 



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226022
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Cffile Error

2005-12-03 Thread John Lucania
Duh :-)

You're right.

jl

On 12/3/05, Bobby Hartsfield [EMAIL PROTECTED] wrote:
 That would definitely cause a problem :) You are missing a quote at the end
 of your cffile tag after #results#

 ~Bobby

 ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com
 -Original Message-
 From: John Lucania [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 03, 2005 1:01 PM
 To: CF-Talk
 Subject: Re: Cffile Error

 \\SWPRINT\LAB_HEMA is a network printer.

 cfexecute works fine as long as there is a file.

 I think the issue is Cffile action=write
 file=D:\Inetpub\WWWROOT\BBDatabase\results.txt output=#results#
 doesn't generate a file.

 jl

 On 12/3/05, ColdFusion [EMAIL PROTECTED] wrote:
  Does ColdFusion Service have access to the network drive?
   \\SWPRINT\LAB_HEMA ???
 
 
 
  -Original Message-
  From: John Lucania [mailto:[EMAIL PROTECTED]
  Sent: Saturday, December 03, 2005 1:35 AM
  To: CF-Talk
  Subject: Cffile Error
 
   C:\CFusionMX\runtime\bincopy
  D:\Inetpub\WWWROOT\BBDatabase\results.txt \\SWPRINT\LAB_HEMA The system
  cannot find the file specified.
 
  cfquery name=GetQryList datasource=BloodBank select * from PTBB
 where
  len(MRN) = 7 order by Lname /cfquery cfsavecontent variable=results
  table border=0 align=center
tr
  td colspan=6
div align=centerbAuto-print Testing cfoutputat
  #TimeFormat(CreateODBCTime(Now()), HH:mm:ss tt)# on
  #DateFormat(CreateODBCDate(Now()), MM-DD-)#/cfoutput/b/div
  /td
/tr
tr
  td bgcolor=CC
div align=centerbName/b/div
  /td
  td bgcolor=CC
div align=centerbABO/b/div
  /td
  td bgcolor=CC
div align=centerbRH/b/div
  /td
  td bgcolor=CC
div align=centerbAntigen/b/div
  /td
  td bgcolor=CC
div align=centerbAntibody/b/div
  /td
/tr
cfoutput query=GetQryList
  tr
td bgcolor=FF#LName#, #FName#/td
td bgcolor=FF#ABO#/td
td bgcolor=FF#RH#/td
td bgcolor=FF#Antigen#/td
td bgcolor=FF#Antibody#/td
  /tr
/cfoutput
  /table
  strong
  div align=centercfoutputfont
  color=99#GetQryList.RecordCount#/font/cfoutputfont
  color=99
Records Found/font/div
  /strong
  /cfsavecontent
 
  Cffile action=write
  file=D:\Inetpub\WWWROOT\BBDatabase\results.txt output=#results#
 
  cfexecute name=c:\copy.bat
  arguments=D:\Inetpub\WWWROOT\BBDatabase\results.txt
  \\SWPRINT\LAB_HEMA outputfile=c:\BBBatch.txt/cfexecute
 
  How do you resolve this error?
 
 
 
 



 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226032
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cffile error confusion.

2004-12-14 Thread Mark A Kruger
Phil,


You need an absolute file path (as in C:\blah\blah.txt) to use CF File. What
you may be looking for is CFHTTP. Try

cfhttp url=http://www.applewoodcommunity.com/index.cfm/

cfset content = cfhttp.filecontent

-Mark

Mark A. Kruger, CFG, MSCE
www.cfwebtools.com
www.necfug.com
http://blog.mxconsulting.com


-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 10:07 AM
To: CF-Talk
Subject: cffile error confusion.


Hi,

Does anyone know why i'm getting this error? It's coming from my local
machine...

Error Occurred While Processing Request
An error occurred when performing a file operation READ on file
C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\http://www.
applewoodcommunity.com/index.cfm.
The cause of this exception was: java.io.FileNotFoundException:
C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\http:\www.a
pplewoodcommunity.com\index.cfm (The filename, directory name, or volume
label syntax is incorrect).

This is my cffile example..

cffile ACTION=READ FILE=http://www.applewoodcommunity.com/index.cfm;
VARIABLE=content

Thanks

Phil






~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187551
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cffile error confusion.

2004-12-14 Thread Ian Skinner
cffile ACTION=READ FILE=http://www.applewoodcommunity.com/index.cfm;
VARIABLE=content

You want to look at the getPathFrom family of functions, to get the system 
file path from your url that the cffile tag needs.

This should get you close.

cffile action=read 
file=#getBaseTemplatePath('http://www.applewoodcommunity.com/')#/index.cfm 
variable=content

This of course assumes that www.applewoodcommunity.com root directory is on the 
server that ColdFusion is running on.  It's not going to help you get a file 
from some other server that the ColdFusion server does not have file 
permissions to.




--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

C code. C code run. Run code run. Please!
- Cynthia Dunning



Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 



~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187611
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cffile error confusion.

2004-12-14 Thread Phillip Perry
Thanks Mark but I can't use it. The problem is that I need the file
uncompiled. Using cfhttp compiles it first.

Thanks anyway

Phil

-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 11:13 AM
To: CF-Talk
Subject: RE: cffile error confusion.


Phil,


You need an absolute file path (as in C:\blah\blah.txt) to use CF File. What
you may be looking for is CFHTTP. Try

cfhttp url=http://www.applewoodcommunity.com/index.cfm/

cfset content = cfhttp.filecontent

-Mark

Mark A. Kruger, CFG, MSCE
www.cfwebtools.com
www.necfug.com
http://blog.mxconsulting.com


-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 10:07 AM
To: CF-Talk
Subject: cffile error confusion.


Hi,

Does anyone know why i'm getting this error? It's coming from my local
machine...

Error Occurred While Processing Request
An error occurred when performing a file operation READ on file
C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\http://www.
applewoodcommunity.com/index.cfm.
The cause of this exception was: java.io.FileNotFoundException:
C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\http:\www.a
pplewoodcommunity.com\index.cfm (The filename, directory name, or volume
label syntax is incorrect).

This is my cffile example..

cffile ACTION=READ FILE=http://www.applewoodcommunity.com/index.cfm;
VARIABLE=content

Thanks

Phil








~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187610
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE error

2004-01-16 Thread Susan McNab
I had exactly the same thing. Noticed it last week. It's an area I haven't worked on for a long time so I am not sure exactly how long ago it started. Not keen on re-installing right now.

The problem is only occurring in the development environment. The code works fine on another server and it hadn't been changed before the error started to happen. 

CF ProductName: ColdFusion Server 
CF ProductLevel: Enterprise 
CF ProductVersion: 6,1,0,63958 
CF AppServer: JRun4 
OS Name: Windows 2000 
OS Version: 5.0 

- Original Message - 
From: Eric Creese 
To: CF-Talk 
Sent: Saturday, January 17, 2004 9:26 AM
Subject: CFFILE error

I have this routine to let users upload a photo to my server. I used to just accept gif's , now I allow for .jpgs so I add them to the accept field. Now my script bombs. loading any type of file. Here is my code.

cftry
cffile action="">
destination=c:\ix\uploads\
nameconflict=makeunique
filefield=image
accept=image/gif,image/jpg,image/jpeg

cfcatch type=any
SCRIPT
alert(Sorry! the image was not a .gif, or .jpg image type);
self.location ='image.cfm';
/SCRIPT
/cfcatch
/cftry
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cffile error 123

2002-04-14 Thread Cold Fusion

you have a PERIOD at the end of the file name.
Thus CF is unable to delete the file.

Manually remove the PERIOD from TEST.CFM.

Then you will be fine



- Original Message -
From: Seamus Campbell [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, April 14, 2002 7:28 AM
Subject: cffile error 123


 Hi

 I'm getting this error:

 Unable to delete the file
 'D:\InetPub\wwwroot\Ccsbt\documents_directory\test.cfm.' The filename,
 directory name, or volume label syntax is incorrect. (error 123)


 I've checked that the path and filename are correct but I don't know where
 to go from there


 Any clues, please

 MTIA

 Seamus

 
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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



Re: cffile error 123

2002-04-14 Thread Seamus Campbell

Many thanks for answer,  but I call the file by this:

CFFILE action=DELETE 
file=D:\InetPub\wwwroot\Ccsbt\documents_directory\cfoutput#get_file_name. 
document_real_name#/cfoutput

so I'm not sure how to remove the last period.
thanks
Seamus


At 11:56 pm 14/04/02 , you wrote:
you have a PERIOD at the end of the file name.
Thus CF is unable to delete the file.

Manually remove the PERIOD from TEST.CFM.

Then you will be fine



- Original Message -
From: Seamus Campbell [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, April 14, 2002 7:28 AM
Subject: cffile error 123


  Hi
 
  I'm getting this error:
 
  Unable to delete the file
  'D:\InetPub\wwwroot\Ccsbt\documents_directory\test.cfm.' The filename,
  directory name, or volume label syntax is incorrect. (error 123)
 
 
  I've checked that the path and filename are correct but I don't know where
  to go from there
 
 
  Any clues, please
 
  MTIA
 
  Seamus
 
 

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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



Re: cffile error 123

2002-04-14 Thread Seamus Campbell

Sorry - ignore last post.
I should have thought a bit more before asking
- I've just removed the unnecessary cfoutput/cfoutput tags and it now 
works fine.


At 06:49 am 15/04/02 , you wrote:
Many thanks for answer,  but I call the file by this:

CFFILE action=DELETE
file=D:\InetPub\wwwroot\Ccsbt\documents_directory\cfoutput#get_file_name.
document_real_name#/cfoutput

so I'm not sure how to remove the last period.
thanks
Seamus


At 11:56 pm 14/04/02 , you wrote:
 you have a PERIOD at the end of the file name.
 Thus CF is unable to delete the file.
 
 Manually remove the PERIOD from TEST.CFM.
 
 Then you will be fine
 
 
 
 - Original Message -
 From: Seamus Campbell [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Sunday, April 14, 2002 7:28 AM
 Subject: cffile error 123
 
 
   Hi
  
   I'm getting this error:
  
   Unable to delete the file
   'D:\InetPub\wwwroot\Ccsbt\documents_directory\test.cfm.' The filename,
   directory name, or volume label syntax is incorrect. (error 123)
  
  
   I've checked that the path and filename are correct but I don't know 
 where
   to go from there
  
  
   Any clues, please
  
   MTIA
  
   Seamus
  
  
 

__
Get the mailserver that powers this list at http://www.coolfusion.com
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



Re: CFFILE ERROR

2002-01-25 Thread Douglas Brown

Thanks for the help, the multipart/form-data worked like a charm. I have 
just one more quick ? if you do not mind. Is there a way to rename the 
file before it get uploaded?


There are two major products that come out of Berkeley: LSD and [Unix] 
BSD. We don't believe this to be a coincidence.



Doug Brown
- Original Message - 
From: Kym Kovan [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 11:26 PM
Subject: Re: CFFILE ERROR


 I keep getting the following error
 
 Error Diagnostic Information
 Error in CFFILE tag
 
 The form field specified in the CFFILE tag (THUMBNAIL) does not 
contain
 an uploaded file. Please be sure that you have specified the correct
 form field name.
 
 You usually get that eror when you don't change the form enctype over 
on 
 the template that is sending the file. It should be:
 
 form action=uploadfile.cfm method=post 
enctype=multipart/form-data
 
 
 --
 
 Yours,
 
 Kym
 
__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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



Re: CFFILE ERROR

2002-01-25 Thread Jennifer Larkin

Nope. But you can change it immediately after it gets uploaded. If you are
 
having a file name conflict problem, you could always rename the file after
 
upload or you could upload into a different directory. (Either make a 
directory before uploading, which would basically get out of control, or 
upload, rename, then move to the permanent directory.)

At 08:50 AM 1/25/02 -0800, you wrote:
Thanks for the help, the multipart/form-data worked like a charm. I have
just one more quick ? if you do not mind. Is there a way to rename the
file before it get uploaded?


There are two major products that come out of Berkeley: LSD and [Unix]
BSD. We don't believe this to be a coincidence.



Doug Brown
- Original Message -
From: Kym Kovan [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 11:26 PM
Subject: Re: CFFILE ERROR


  I keep getting the following error
  
  Error Diagnostic Information
  Error in CFFILE tag
  
  The form field specified in the CFFILE tag (THUMBNAIL) does not
contain
  an uploaded file. Please be sure that you have specified the correct
  form field name.
 
  You usually get that eror when you don't change the form enctype over
on
  the template that is sending the file. It should be:
 
  form action=uploadfile.cfm method=post
enctype=multipart/form-data
 
 
  --
 
  Yours,
 
  Kym
 

__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



RE: CFFILE ERROR

2002-01-25 Thread Mark A. Kruger - CFG

cffile action=upload ... has an attribute called nameConflict that y
ou
can set to overwrite or makeunique.  If you set it to makeunique it
creates a new filename for you and stores the value in FILE.SERVERFILE

-MK

-Original Message-
From: Jennifer Larkin [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 10:38 AM
To: CF-Talk
Subject: Re: CFFILE ERROR


Nope. But you can change it immediately after it gets uploaded. If you are

having a file name conflict problem, you could always rename the file after

upload or you could upload into a different directory. (Either make a
directory before uploading, which would basically get out of control, or
upload, rename, then move to the permanent directory.)

At 08:50 AM 1/25/02 -0800, you wrote:
Thanks for the help, the multipart/form-data worked like a charm. I have
just one more quick ? if you do not mind. Is there a way to rename the
file before it get uploaded?


There are two major products that come out of Berkeley: LSD and [Unix]
BSD. We don't believe this to be a coincidence.



Doug Brown
- Original Message -
From: Kym Kovan [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 11:26 PM
Subject: Re: CFFILE ERROR


  I keep getting the following error
  
  Error Diagnostic Information
  Error in CFFILE tag
  
  The form field specified in the CFFILE tag (THUMBNAIL) does not
contain
  an uploaded file. Please be sure that you have specified the correct
  form field name.
 
  You usually get that eror when you don't change the form enctype over
on
  the template that is sending the file. It should be:
 
  form action=uploadfile.cfm method=post
enctype=multipart/form-data
 
 
  --
 
  Yours,
 
  Kym
 

_
_

Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB
MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



Re: CFFILE ERROR

2002-01-24 Thread Kym Kovan

I keep getting the following error

Error Diagnostic Information
Error in CFFILE tag

The form field specified in the CFFILE tag (THUMBNAIL) does not contain
an uploaded file. Please be sure that you have specified the correct
form field name.

You usually get that eror when you don't change the form enctype over on 
the template that is sending the file. It should be:

form action=uploadfile.cfm method=post enctype=multipart/form-data


--

Yours,

Kym
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



Re: CFFILE ERROR

2002-01-24 Thread Jennifer Larkin

Make sure that your form has enctype=multipart/form-data

At 11:30 PM 1/24/02 -0800, you wrote:
I keep getting the following error

Error Diagnostic Information
Error in CFFILE tag

The form field specified in the CFFILE tag (THUMBNAIL) does not contain
an uploaded file. Please be sure that you have specified the correct
form field name.

Here is my call to the tag, anything wrong here or some advice maybe?
The formfield name is correct!!

CFFILE
   ACTION=upload
   FILEFIELD=thumbnail
   NAMECONFLICT=makeunique
   DESTINATION=c:\carnivorepc\countrymusicgroup\_images\
   ACCEPT=image/gif , image/jpeg


There are two major products that come out of Berkeley: LSD and [Unix]
BSD. We don't believe this to be a coincidence.



Doug Brown

__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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



Re: CFFILE ERROR

2002-01-24 Thread Tony Schreiber

Replace FILEFIELD=thumbnail with FILEFIELD=thumbnail

 Here is my call to the tag, anything wrong here or some advice maybe?
 The formfield name is correct!!

 CFFILE
   ACTION=upload
   FILEFIELD=thumbnail
   NAMECONFLICT=makeunique
   DESTINATION=c:\carnivorepc\countrymusicgroup\_images\
   ACCEPT=image/gif , image/jpeg


 There are two major products that come out of Berkeley: LSD and [Unix]
 BSD. We don't believe this to be a coincidence.



 Doug Brown
 
__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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



RE: cffile Error

2002-01-11 Thread jon

It looks like you forgot an extension -- try appending an extra \

.. either that ir it could be a permissions problem.

-- jon


-
jon roig
online community services manager
epilepsy foundation
tel:   215.850.0710
site:  http://www.epilepsyfoundation.org
email: [EMAIL PROTECTED]


-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 12, 2002 1:21 AM
To: CF-Talk
Subject: cffile Error


Anyone ever get the following error?
Error attempting to read 'c:\Web\Cars\Master\CarImages.' Access is
denied. (error 5)

The CFFILE is this:

cffile action=READBINARY file=#Form.ImageDirectory#
variable=Images

I am on WinXP, Cf4.5 Pro

Thanks,

_
Bruce Sorge
ICQ#:145050973
Current ICQ status:

SMS: (Send an SMS message to my ICQ): +2783142145050973
More ways to contact me: http://wwp.icq.com/145050973
_


__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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



Re: cffile Error

2002-01-11 Thread Bruce Sorge

I did it with the ending \ and I get the error that the directory cannot be
found. And as far as permissions are concerned, I checked that as well.
- Original Message -
From: jon [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 12:36 AM
Subject: RE: cffile Error


 It looks like you forgot an extension -- try appending an extra \

 .. either that ir it could be a permissions problem.

 -- jon


 -
 jon roig
 online community services manager
 epilepsy foundation
 tel:   215.850.0710
 site:  http://www.epilepsyfoundation.org
 email: [EMAIL PROTECTED]


 -Original Message-
 From: Bruce Sorge [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 12, 2002 1:21 AM
 To: CF-Talk
 Subject: cffile Error


 Anyone ever get the following error?
 Error attempting to read 'c:\Web\Cars\Master\CarImages.' Access is
 denied. (error 5)

 The CFFILE is this:

 cffile action=READBINARY file=#Form.ImageDirectory#
 variable=Images

 I am on WinXP, Cf4.5 Pro

 Thanks,

 _
 Bruce Sorge
 ICQ#:145050973
 Current ICQ status:

 SMS: (Send an SMS message to my ICQ): +2783142145050973
 More ways to contact me: http://wwp.icq.com/145050973
 _


 
__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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



Re: cffile Error

2002-01-11 Thread Kym Kovan

Anyone ever get the following error?
Error attempting to read 'c:\Web\Cars\Master\CarImages.' Access is
denied. (error 5)

The CFFILE is this:

cffile action=READBINARY file=#Form.ImageDirectory#
variable=Images

It looks like you are specifying the directory but not the file itself.


--

Yours,

Kym
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



Re: cffile Error

2002-01-11 Thread Bruce Sorge

I just figured it out. Need to do a cfdirectory read first to get the file
names. I think that I need to go to bed.
- Original Message -
From: Kym Kovan [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 12:42 AM
Subject: Re: cffile Error


 Anyone ever get the following error?
 Error attempting to read 'c:\Web\Cars\Master\CarImages.' Access is
 denied. (error 5)
 
 The CFFILE is this:
 
 cffile action=READBINARY file=#Form.ImageDirectory#
 variable=Images

 It looks like you are specifying the directory but not the file itself.


 --

 Yours,

 Kym
 
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



Re: cffile error

2001-07-10 Thread Michael Lugassy

Weird, I'm getting the same error when I ran out of ram or restart the
cf-server
(while trying to view a .cfm file), maybe the file you are uploading is very
big?
try uploading a simple 10Kb TXT file, see what happens.

also - try changing upload2.cfm to include only 1 task (file upload OR db
insert)
this way you can figure out what is maxing the server (or generating this
unique error).

make sure you have enough space on h:\ and that you have write/modify rights
on this directory - as the best practice, I suggest again to upload a 10kb
txt
file to c:\cfusion or somewhere easier.

Let me know,

Michael.


- Original Message -
From: Parra, Fernando [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 1:58 AM
Subject: cffile error


 Can anyone help me?

 I am trying to set an upload form and I am getting the following error:

 Error Occurred While Processing Request
 Error Diagnostic Information Request canceled or ignored by serverServer
 busy or unable to fulfill request. The server is unable to fulfill your
 request due to extremely high traffic or an unexpected internal error.
 Please attempt your request again (if you are repeatedly unsuccessful you
 should notify the site administrator). (Location Code: 26)
 Please inform the site administrator mailto:[EMAIL PROTECTED] that this
error
 has occurred (be sure to include the contents of this page in your message
 to the administrator).

 Here is the code:



 FORM:

 form action=upload2.cfm method=post enctype=multipart/form-data

 input type=hidden name=doc_cat value=
 table border=0 align=center style=font-size: xx-small; font-family:
 Arial; font-weight: bold
 tr
 tdPlease Choose a File to Uploadbrinput type=File
 name=NewFile size=20/td
 tdName of Documentbrinput type=text name=doc_title/td
 /tr
 tr
 td
 !--- Nested table ---
 table border=0 style=font-size: xx-small; font-family: Arial;
 font-weight: bold cellpadding=0 cellspacing=0
 tr
 tdUpload Date/td
 td width=40nbsp;/td
 !--- tdNumber of Pages/td ---
 /tr
 tr
 tdinput type=text name=doc_date value=mm/dd/
 size=10/td
 tdnbsp;/td
 !--- tdinput type=text name=doc_pags size=5/td ---
 /tr
 /table
 /td
 tdAuthorbrinput type=text name=doc_author/td
 /tr

 tr
 td colspan=2Document's Descriptionbrtextarea
 name=doc_description cols=45 rows=5 wrap=virtual/textarea/td
 /tr
 tr
 tdnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;input
 type=Submit value=Upload File/td
 /tr
 /table
 /form


ACTION::
 ::

 cffile action=UPLOAD filefield=form.NewFile
 destination=h:\web\content nameconflict=ERROR accept=text/html
 !--- cffile action=UPLOAD filefield=doc_title
 destination=\\P2\P2Web\web\NewIM3\Content nameconflict=SKIP
 accept=text/html ---
 cfinsert datasource=im3 tablename=documents
 formfields=doc_title, doc_date, doc_author, doc_description,  doc_cat
 !--- /cfif  ---


 **


 Thanks,


 Fernando




 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
 Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFILE Error

2001-04-13 Thread Adkins, Randy

Make sure your FORM contains the encryption:
multipart/form-data 

-Original Message-
From: James Taavon [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 9:20 AM
To: CF-Talk
Subject: CFFILE Error


Has anyone seen this error message before:

Error in CFFILE tag

The form field specified in the CFFILE tag (DOCUMENT) does not contain
an uploaded file. Please be sure that you have specified the correct
form field name.

James
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFFILE Error

2001-04-13 Thread Michael A. Cady

Hi James,

This error has been plaguing me for months and I finally figured out what is
causing it.  It's due to users with browsers older than MSIE 4 or Netscape 3
trying to use the input type="file" tag on a page.  These browsers don't
know about this tag.  Check your error log and you can see what browser
version is used when the error occurs.  Usually it's MSIE 3.02.

Mike Cady

- Original Message -
From: "James Taavon" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 13, 2001 9:20 AM
Subject: CFFILE Error


 Has anyone seen this error message before:

 Error in CFFILE tag

 The form field specified in the CFFILE tag (DOCUMENT) does not contain
 an uploaded file. Please be sure that you have specified the correct
 form field name.

 James


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFFILE Error

2001-04-13 Thread James Taavon

oh.. right. thanks for reminding me. 

"Adkins, Randy" wrote:
 
 Make sure your FORM contains the encryption:
 multipart/form-data
 
 -Original Message-
 From: James Taavon [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 13, 2001 9:20 AM
 To: CF-Talk
 Subject: CFFILE Error
 
 Has anyone seen this error message before:
 
 Error in CFFILE tag
 
 The form field specified in the CFFILE tag (DOCUMENT) does not contain
 an uploaded file. Please be sure that you have specified the correct
 form field name.
 
 James
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFILE Error (why?)

2001-02-27 Thread Christian L. Watt

An IP is not a valid path.  With CFFile you must use a valid local path.  If
it works in Explorer (not IE, MS) then it will work with CFFile (as a
general rule of thumb.)

CW

-Original Message-
From: Jay Patton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 1:38 PM
To: CF-Talk
Subject: CFFILE Error (why?)


why do i get this error?
here is the query or rather the CFFile action.

cffile action="upload" 
  filefield="ItemPic"
  destination="#storepath#\images" !-- the "#storepath#" is
'D:\64.???.132.???\beta'. i used ?'s just for posting reasons. --
  nameconflict="overwrite"


and here is the error.
Error Diagnostic Information
Error processing CFFILE 

Error attempting to save uploaded file to path
'D:\64.???.132.???\beta\images..' Access is denied. (error 5) 

The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (294:4) to (298:4).

it worked fine the other day.
any ideas?
thanks,

Jay Patton
Web Design / Application Design
Web Pro USA
406.549.3337 ext. 203
1.888.5WEBPRO
www.webpro-usa.com
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFFILE Error (why?)

2001-02-27 Thread Chad Gray

Is there a directory on the D drive called \64.???.132.???\beta\images

or are you trying to connect to a server IP of 64.???.132.???\beta\images

The syntax of the CFFILE statement looks ok.  Although i usually format it 
in a different order and i dont think that matters.  I would try putting a 
trailing \ after images like this:

D:\64.???.132.???\beta\images\

If you want to send the file to an IP use CFFTP.


At 12:38 PM 2/27/01 -0700, you wrote:
why do i get this error?
here is the query or rather the CFFile action.

cffile action="upload"
   filefield="ItemPic"
   destination="#storepath#\images" !-- the "#storepath#" is 
 'D:\64.???.132.???\beta'. i used ?'s just for posting reasons. --
   nameconflict="overwrite"
 

and here is the error.
Error Diagnostic Information
Error processing CFFILE

Error attempting to save uploaded file to path 
'D:\64.???.132.???\beta\images..' Access is denied. (error 5)

The error occurred while processing an element with a general identifier 
of (CFFILE), occupying document position (294:4) to (298:4).

it worked fine the other day.
any ideas?
thanks,

Jay Patton
Web Design / Application Design
Web Pro USA
406.549.3337 ext. 203
1.888.5WEBPRO
www.webpro-usa.com



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFILE Error (why?)

2001-02-27 Thread Philip Arnold - ASP

 why do i get this error?
 here is the query or rather the CFFile action.

 cffile action="upload"
   filefield="ItemPic"
   destination="#storepath#\images" !-- the "#storepath#" is
 'D:\64.???.132.???\beta'. i used ?'s just for posting reasons. --
   nameconflict="overwrite"
 

 and here is the error.
 Error Diagnostic Information
 Error processing CFFILE

 Error attempting to save uploaded file to path
 'D:\64.???.132.???\beta\images..' Access is denied. (error 5)

 The error occurred while processing an element with a general
 identifier of (CFFILE), occupying document position (294:4) to (298:4).

 it worked fine the other day.
 any ideas?

OK, I assume that you're sending to a remote machine, and 64.???.132.???
isn't a folder

If so, then get rid of the D: and use \\

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFFILE Error (why?)

2001-02-27 Thread Jay Patton

boy do i feel dumb. i was referring to a code snippit from one of the other
sites that i have used this on before, and it turns out that i overlooked
the final slash at the end of the path.

THANK YOU so much for pointing that out to me.

Thanks all,

Jay Patton
Web Design / Application Design
Web Pro USA
406.549.3337 ext. 203
1.888.5WEBPRO
www.webpro-usa.com
- Original Message -
From: "Chad Gray" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 1:45 PM
Subject: Re: CFFILE Error (why?)


 Is there a directory on the D drive called \64.???.132.???\beta\images

 or are you trying to connect to a server IP of 64.???.132.???\beta\images

 The syntax of the CFFILE statement looks ok.  Although i usually format it
 in a different order and i dont think that matters.  I would try putting a
 trailing \ after images like this:

 D:\64.???.132.???\beta\images\

 If you want to send the file to an IP use CFFTP.


 At 12:38 PM 2/27/01 -0700, you wrote:
 why do i get this error?
 here is the query or rather the CFFile action.
 
 cffile action="upload"
filefield="ItemPic"
destination="#storepath#\images" !-- the "#storepath#" is
  'D:\64.???.132.???\beta'. i used ?'s just for posting reasons. --
nameconflict="overwrite"
  
 
 and here is the error.
 Error Diagnostic Information
 Error processing CFFILE
 
 Error attempting to save uploaded file to path
 'D:\64.???.132.???\beta\images..' Access is denied. (error 5)
 
 The error occurred while processing an element with a general identifier
 of (CFFILE), occupying document position (294:4) to (298:4).
 
 it worked fine the other day.
 any ideas?
 thanks,
 
 Jay Patton
 Web Design / Application Design
 Web Pro USA
 406.549.3337 ext. 203
 1.888.5WEBPRO
 www.webpro-usa.com
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFile ERROR

2000-11-01 Thread Scott J. Brader

Are both services running the same version of CF. I had a problem a while
back where the host was running an older version that behaved differently
than the same code running on my servers.

Scott

Scott Brader
USAV Group
5485 S. Westridge Dr.
PO Box 510620
New Berlin, WI 53151-0620

Phone: 262.814.2000
Fax: 262.814.2006

Amateurs practice until they get it right,
Experts practice until they can't get it wrong.

Any opinions expressed are mine and are not representative of USAV Group.

-Original Message-
From: AustralianAccommodation.com Pty. Ltd.
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 9:35 AM
To: CF-Talk
Subject: CFFile ERROR


the following error occurs and i am a little confused as i have 2 copies one
copy on each of 2 totally different cf hosting services

on one of the cf hosts this error does not occur whislt on the other cf host
the error occurs and the code is 100% identical on both sites

your comments please

Error Diagnostic Information
Attribute set validation error in tag CFFILE

The tag has an invalid attribute combination: the value of the tag switch
attribute 'ACTION' which is now 'RENAME' requires a different combination of
attributes. For the same switch attribute value the following unknown
attributes have been provided: (NAMECONFLICT).

The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (30:1) to (33:26).

The specific sequence of files included or processed is:
D:\FTP\austaccomm\Htdocs\austonline\admin1\admin\updatepropertyformresults.c
fm



Kind Regards

Claude Raiola (Director)
AustralianAccommodation.com Pty. Ltd.
Website: www.AustralianAccommodation.com
Email: [EMAIL PROTECTED]



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



Re: CFFile ERROR

2000-11-01 Thread AustralianAccommodation.com Pty. Ltd.

not sure if they are running on different versions of the cf server I
thought of that too more importantly wondering what the solution is
- Original Message -
From: "Scott J. Brader" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, November 02, 2000 1:44 AM
Subject: RE: CFFile ERROR


Are both services running the same version of CF. I had a problem a while
back where the host was running an older version that behaved differently
than the same code running on my servers.

Scott

Scott Brader
USAV Group
5485 S. Westridge Dr.
PO Box 510620
New Berlin, WI 53151-0620

Phone: 262.814.2000
Fax: 262.814.2006

Amateurs practice until they get it right,
Experts practice until they can't get it wrong.

Any opinions expressed are mine and are not representative of USAV Group.

-Original Message-
From: AustralianAccommodation.com Pty. Ltd.
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 9:35 AM
To: CF-Talk
Subject: CFFile ERROR


the following error occurs and i am a little confused as i have 2 copies one
copy on each of 2 totally different cf hosting services

on one of the cf hosts this error does not occur whislt on the other cf host
the error occurs and the code is 100% identical on both sites

your comments please

Error Diagnostic Information
Attribute set validation error in tag CFFILE

The tag has an invalid attribute combination: the value of the tag switch
attribute 'ACTION' which is now 'RENAME' requires a different combination of
attributes. For the same switch attribute value the following unknown
attributes have been provided: (NAMECONFLICT).

The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (30:1) to (33:26).

The specific sequence of files included or processed is:
D:\FTP\austaccomm\Htdocs\austonline\admin1\admin\updatepropertyformresults.c
fm



Kind Regards

Claude Raiola (Director)
AustralianAccommodation.com Pty. Ltd.
Website: www.AustralianAccommodation.com
Email: [EMAIL PROTECTED]



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: CFFile ERROR

2000-11-01 Thread Chapman, Katrina

Can we see the tag in question?  It should look like this.

CFFILE ACTION="Rename"
SOURCE="full_path_name"
DESTINATION="full_path_name"
ATTRIBUTES="file_attributes"

--K

-Original Message-
From: AustralianAccommodation.com Pty. Ltd.
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 9:35 AM
To: CF-Talk
Subject: CFFile ERROR


the following error occurs and i am a little confused as i have 2 copies one
copy on each of 2 totally different cf hosting services

on one of the cf hosts this error does not occur whislt on the other cf host
the error occurs and the code is 100% identical on both sites

your comments please

Error Diagnostic Information
Attribute set validation error in tag CFFILE

The tag has an invalid attribute combination: the value of the tag switch
attribute 'ACTION' which is now 'RENAME' requires a different combination of
attributes. For the same switch attribute value the following unknown
attributes have been provided: (NAMECONFLICT).

The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (30:1) to (33:26).

The specific sequence of files included or processed is:
D:\FTP\austaccomm\Htdocs\austonline\admin1\admin\updatepropertyformresults.c
fm



Kind Regards

Claude Raiola (Director)
AustralianAccommodation.com Pty. Ltd.
Website: www.AustralianAccommodation.com
Email: [EMAIL PROTECTED]



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: CFFile Error

2000-04-27 Thread Ron Anderson

Did you try type="any"?

-Original Message-
From: Dan Blickensderfer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 27, 2000 3:23 PM
To: [EMAIL PROTECTED]
Subject: CFFile Error


I have a little problem with cffile  accepting  other picture formats then
just image/gif, image/jpg.  I would like to accept another format
(image/pjpeg) I added it to the accept pram in cffile.  I'm still getting
the same error.

"The MIME type of the uploaded file (image/pjpeg) was not accepted by the
server. Please verify that you are uploading a file of the appropriate type"

Where else do I have to go in the server to accept the other format.  I did
look in the program file types and that file type is defined.

Thanks,
Dan



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CFFILE error

2000-03-29 Thread Deanna L. Schneider

I had that problem until I added the enctype to my form tag. See below.

form action="uploadaction.cfm" enctype="multipart/form-data" method="post"
input type="file" name="testfile"

The form field specified in the CFFILE tag (FILMESSAGE) does not contain
an
uploaded file.  Please be sure you have specified the correct form field
name.




Deanna Schneider
Interactive Media Developer
UWEX Cooperative Extension Electronic Publishing Group
302 Hiram Smith
1545 Observatory Dr.
Madison, WI 53706
(608) 265-7923



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CFFILE error

2000-03-29 Thread MFleming

What does your form declaration look like??

Mike Fleming
CF Codeslinger

"I spent my whole life not knowing what I want out of it, just chasing my
tail. Now for the first time I know exactly what I want and who... that's
the damnable misery of it." Tombstone




-Original Message-
From: John Keane [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 10:54 AM
To: [EMAIL PROTECTED]
Subject: CFFILE error


I have been around the block with this error and at the moment am very
frustrated.

First the line of code:

CFFILE ACTION="upload" FILEFIELD="filMessage" DESTINATION="#SavePath#"
NAMECONFLICT="overwrite"

The error:

The form field specified in the CFFILE tag (FILMESSAGE) does not contain an
uploaded file.  Please be sure you have specified the correct form field
name.

filMessage contains C:\BIN\HPFILES\EMAEM.MSG

Any help would be greatly appreciated.

Thanks

John Keane
[EMAIL PROTECTED]


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.