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
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 )#
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 =
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
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
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
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
\\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
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
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
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
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
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
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
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
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
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
.
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
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
: 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
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
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
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\
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
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
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,
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
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
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
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
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
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:
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
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
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 driv
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:
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 B
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,
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
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
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:
41 matches
Mail list logo