...@po-box.esu.edu]
Sent: Thursday, 24 October 2013 12:08 AM
To: cf-talk
Subject: CFFILE Question
I have a web-based form that requires the user to upload a document.
Everything works fine until I try and delete the document after delivery.
With the delete action enabled the email does not get
I have a web-based form that requires the user to upload a document. Everything
works fine until I try and delete the document after delivery. With the delete
action enabled the email does not get delivered. I have place the action=delete
inside and outside of the /cfmail
cfif
://www.twitter.com/austin_williams
-Original Message-
From: Steve LaBadie [mailto:slaba...@po-box.esu.edu]
Sent: Wednesday, October 23, 2013 9:08 AM
To: cf-talk
Subject: CFFILE Question
I have a web-based form that requires the user to upload a document. Everything
works fine until I try and delete
what you have to remember is that the mail gets added to the spool, so it
may not get sent for a while depending how big the queue is, so you cannot
just delete an attachment right away otherwise you are deleting it
immediately even before the mail has even sent.
You should setup a scheduled task
Another alternative, if you are using CF 8 and above, is the content
attribute of the cfmailparam tag. You can use this to attache the binary
data itself as an attachment, that way you do not have to rely on a file
existing on the server at the time the mail is sent. Read the file into a
Before I go nuts trying to write a fix for this, I'm hoping maybe someone will
know of a simple solution. Seems like it should be simple.
I use CFFILE to allow user to upload files to our extranet. Our server is
windows based, so it does not support all of the file characters supported on
http://cflib.org/udf/filterFilename
On Thu, Jan 31, 2013 at 10:12 AM, Robert Harrison
rob...@austin-williams.com wrote:
Before I go nuts trying to write a fix for this, I'm hoping maybe someone
will know of a simple solution. Seems like it should be simple.
I use CFFILE to allow user to
You can specify the local file name of the uploaded file as it is uploaded,
through the cffile tag's destination= attribute. It's like this:
cffile action=upload destination=#expandPath('.')#/#createUUID()#
filefield=postfile result=f
Good security dictates first that uploaded files should
Hi Folks.
while I realize this a question for the cf_newbie list, the response times
here are always much faster here. First off, thank you Michael D. for your
response on cf_newbie in regards to my question about cfdirectory. I am
still working on the basics with many things cf, another
On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote:
1.)In outputting my datetime here, how would I go about adding the
AM/PM
designation for output?
cfset myDate = now()
cffile action=write
file=#BaseDir#\index.cfm
output=Website directories were created successfully on
]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Sunday, November 12, 2006 9:57 AM
Subject: cffile question
Hi Folks.
while I realize this a question for the cf_newbie list, the response times
here are always much faster here. First off, thank you Michael D. for your
response on cf_newbie
Jon Clausen wrote:
On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote:
1.)In outputting my datetime here, how would I go about adding the
AM/PM
designation for output?
cfset myDate = now()
cffile action=write
file=#BaseDir#\index.cfm
output=Website directories were created
Thanks Doug! Had to be that simple eh ;-)
-Original Message-
From: Doug Brown [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 12, 2006 12:38 PM
To: CF-Talk
Subject: Re: cffile question
cfset myDate = now()
cffile action=write
file=#BaseDir#\index.cfm
output=Website
brain can come up with
is definitely helping things to click for me.
Bob
-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 12, 2006 12:39 PM
To: CF-Talk
Subject: Re: cffile question
Jon Clausen wrote:
On Nov 12, 2006, at 11:57 AM, Bob Imperial wrote:
1
Thanks Jon!
Using html tags in the output for the read works fine for me, guess I should
have thought a little more about the specific tag I was having trouble with.
Is it possible to include html tags in the output field for the write? I've
tried several ways/locations within the output for the
I am using CFFILE to create articles for a magazine publisher.
I would like to include CF code that is not processed when CFFILE is
executed.
In effect I'm looking for a tag that is something like:
#doNotProcess(CGI.path_info)#
where the CFFILE does not process CGI.path_info but in the
On Wednesday 15 Sep 2004 17:23 pm, mayo wrote:
The resulting page should look like the code below:
...
link href="" type=text/css rel=stylesheet
Construct the contents of the page in a string, then write this string to a
file - this will enable you to subsituate as needed.
--
Tom Chiverton
It'll only work if the generated file is a CFM template, but you can
just write your standard CFML to the file and it'll be processed.
You'll have to escape it while writing though.For example:
cfoutput
cfsavecontent variable=doc
click a href="" to print
/cfsavecontent
/cfoutput
cfset doc =
Hi,
Is there anyway to create a file and automatically have the file download to a
floppy in the A: drive.
Basically I am running a CFQUERY, create the required '|' delimited fields
thru Oracle and I want to some how loop of the output, create a file but save
it directly to the A: drive.I do
Basically I am running a CFQUERY, create the required '|' delimited fields
thru Oracle and I want to some how loop of the output, create a file but save
it directly to the A: drive.I do not want the file to be created on the
server first and then downloaded to the A: drive.
Can this be done?
Localy, I dont see whay not. (locally meaning the server itsself)
just make all of your cffile destinations point to the A: drive
to a clients A: drive... nope
- Original Message -
From: Ciliotta, Mario
To: CF-Talk
Sent: Thursday, August 26, 2004 3:42 PM
Subject: CFFILE Question
Trying to go back and update my web app to close the door behind some things. Trying to delete images from the server when someone deletes an item from the database.
(I'm using CF 5 SQL DB)
Here's some code:.
cfquery name=deleteProduct
DELETE FROM products
WHERE productid = #URL.productid#
Reverse your queries.. You are deleting all data before the image.
Thus when you do your SELECT, there is no data to be found.
_
From: Donna French [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 12:56 PM
To: CF-Talk
Subject: CFFile Question
Trying to go back and update my web app
Donna,
I'd reverse the order of your two queries.You're deleting the
records, then trying to select them ;)
-joe
- Original Message -
From: Donna French [EMAIL PROTECTED]
Date: Mon, 2 Aug 2004 11:56:10 -0500
Subject: CFFile Question
To: CF-Talk [EMAIL PROTECTED]
Trying to go back
Thank you! Works great.
Maybe they can hire someone to do the easy stuff - I always complicte the hell out of it!!!
Thanks again!
Donna
- Original Message -
From: Adkins, Randy
To: CF-Talk
Sent: Monday, August 02, 2004 12:04 PM
Subject: RE: CFFile Question
Reverse your queries.. You
HAHAHAH
HAHAHAHAHAHAHA!!!
I remember doing this one time!
- Original Message -
From: Joe Rinehart
To: CF-Talk
Sent: Monday, August 02, 2004 12:08 PM
Subject: Re: CFFile Question
Donna,
I'd reverse the order of your two queries.You're deleting the
records, then trying to select them
hi there.
ok, I have a mapped network drive, that from my cfmx server, I can write
files to, etc...however when I try to use coldfusion and cffile, to create
the file on the mapped network drive, it gives me an error, access denied.
Detail The cause of this exception was:
,
Andrew
Webmaster
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 9:44 AM
To: CF-Talk
Subject: cffile question
hi there.
ok, I have a mapped network drive, that from my cfmx server, I can write
files to, etc...however when I try to use
: cffile question
To: CF-Talk [EMAIL PROTECTED]
hi there.
ok, I have a mapped network drive, that from my cfmx server, I can write
files to, etc...however when I try to use coldfusion and cffile, to create
the file on the mapped network drive, it gives me an error, access denied.
Detail
can you use unc path in cffile?
I didn't know that...ill have to try...
thanks.
tw
-Original Message-
From: JediHomer [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 11:04 AM
To: CF-Talk
Subject: Re: cffile question
Have you tried using a UNC path?
Also, is CF running
...
thanks.
tony
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 11:20 AM
To: CF-Talk
Subject: RE: cffile question
can you use unc path in cffile?
I didn't know that...ill have to try...
thanks.
tw
-Original Message-
From: JediHomer
ok I used the unc path, and still the same thing.
The SYSTEM account has no rights or access to other servers, via UNC paths
or drive mappings.
what are the implications if I change the cfmx server to be a
different account, other than localSystem?what could happen
if I make the change?
so I can do it as administrator, and change it in the services panel, and
restart, and things should be good?
tw
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 11:46 AM
To: CF-Talk
Subject: RE: cffile question
ok I used the unc path
-0400
Subject: RE: cffile question
To: CF-Talk [EMAIL PROTECTED]
so I can do it as administrator, and change it in the services panel, and
restart, and things should be good?
tw
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 11:46 AM
To: CF
could always write it to a zip file after writtining to excel
I have an excel file that I have written from a query. When clicking on
the link to download the file, how do I get it to ask to download it as
opposed to opening it in IE?
Thanks!
[Todays Threads]
[This Message]
From: [EMAIL PROTECTED]
I have an excel file that I have written from a query. When
clicking on the link to download the file, how do I get it to
ask to download it as opposed to opening it in IE?
CFCONTENT the file rather than linking to it and change the content type
to something like
CFCONTENT the file rather than linking to it and change the
content type to something like ZZ, then it'll force a
download
I'm not sure I understand why you'd specify an unknown MIME type rather than
just use the MIME type for arbitrary binary data:
application/octet-stream
Dave Watts,
From: Dave Watts
I'm not sure I understand why you'd specify an unknown MIME
type rather than just use the MIME type for arbitrary binary data:
application/octet-stream
For me it's a paranoia thing
You never know what strange settings a user might have on their browser
- if they've tied
I have an excel file that I have written from a query. When clicking on
the link to download the file, how do I get it to ask to download it as
opposed to opening it in IE?
Thanks!
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
OK I have a form that someone fills out, they hit submit and I present the results.At the same time I need to create an html file on the fly with the same results to save for later use.So basically I set something like CFSET body='THE ENTIRE HTML DOCUMENT BODY'
Now within the above CFSET tag the
Instead of cfset use cfsavecontent
-Original Message-
From: Kelly Matthews [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 11:06 AM
To: CF-Talk
Subject: CFFILE Question
OK I have a form that someone fills out, they hit submit and I present
the results.At the same time I need
You have a cfoutput right?
-Original Message-
From: Kelly Matthews [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 11:26 AM
To: CF-Talk
Subject: Re:CFFILE Question
I tried that and that outputs nothing. All the Cf comes through like
#form.whatever# and nothing is processed.
Hello Everybody,
I want to see the contents of a directory on the
server. I know there is a function in CF to do this,
GetTemplatePath, cfdirectory or something (not sure).
The directory path will not change. I want to first
get to the directory and then find all log files in
the directory
-Talk
Subject: CFFILE Question
Hello Everybody,
I want to see the contents of a directory on the
server. I know there is a function in CF to do this,
GetTemplatePath, cfdirectory or something (not sure).
The directory path will not change. I want to first
get to the directory and then find all log
: Allan Clarke [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 10:12
To: CF-Talk
Subject: CFFILE Question
Hello Everybody,
I want to see the contents of a directory on the
server. I know there is a function in CF to do this,
GetTemplatePath, cfdirectory or something (not sure).
The directory path
SupportiSearches*.log destinationfile.log
That should do exactly what you want, very, very quickly!
-Original Message-
From: Allan Clarke [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 10:12
To: CF-Talk
Subject: CFFILE Question
Hello Everybody,
I want to see the contents of a directory
with cfsavecontent to capture the output if you are not using MX 6.1.
- Calvin
- Original Message -
From: Craig Dudley
To: CF-Talk
Sent: Wednesday, October 15, 2003 5:36 AM
Subject: RE: CFFILE Question
If you want the cf template to finish quickly you could always exclude
timeout value
to run a batch file for instance, e.g.
COPY SupportiSearches*.log destinationfile.log
That should do exactly what you want, very, very quickly!
-Original Message-
From: Allan Clarke [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 10:12
To: CF-Talk
Subject: CFFILE Question
Hello Everybody
.
COPY SupportiSearches*.log destinationfile.log
That should do exactly what you want, very, very quickly!
-Original Message-
From: Allan Clarke [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 10:12
To: CF-Talk
Subject: CFFILE Question
Hello Everybody,
I want to see
Yes, if you're reading the resultant file straight away, you have to
make sure the batch file has finished 1st. (This is exaclty what Calvin
suggested)
Therefore don't exclude the timeout value on cfexecute.
This will show the batch files cmd output...
cfexecute
cfsilent ??
-Original Message-
From: ColdFusion Programmer [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 12:48
To: CF-Talk
Subject: Re:CFFILE Question
This shows the batch files cmd output but does not error:
cfexecute name=D:\CFusionMX\wwwroot\supportSearches.bat
Hi All,
Is is possible to specify in a CFFILE tag the directory path of another Cold Fusion
server to save the file. Basically what I what to do is run an application on a
server that is distributed among 4 different server in 4 different location. The
application has a file upload piece and
-Original Message-
From: Ciliotta, Mario [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 23 January 2003 1:09 PM
To: CF-Talk
Subject: CFFILE Question
Hi All,
Is is possible to specify in a CFFILE tag the directory path of another Cold
Fusion server to save the file. Basically what I what to do
Haven't done this before, looking for some pointers...
A. Page has a button on it to Create File from a database query
(got no problem with this part)
B. When pressed, the file is created and pushed at the user, whom would
immediately get a prompt to Save or Open the file.
Possible? The
Les
Write the file and then deliver it using CFCONTENT
HTH
Alistair
-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2002 16:01
To: CF-Talk
Subject: Push and CFFILE Question
Haven't done this before, looking for some pointers...
A. Page has a button
Hi,
Still having a little bit of trouble. Hope you don't mind giving a little
advice
I'm successfully writing the required file to a directory on the server.
Let's call the file someFILE.fnm. (Basically a text file - the extension
is required by the program that's going to open it later...)
/
-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 10:46 PM
To: CF-Talk
Subject: RE: Push and CFFILE Question - one more question!
Hi,
Still having a little bit of trouble. Hope you don't mind giving a little
advice
I'm successfully
That worked! Thanks...
Now if I can solve the cfinclude inside the cffile problem I'm done!
Les
: Stick the following code above the CFCONTENT tag:
:
: CFHEADER
: NAME=content-disposition
: VALUE=attachment; filename=someFILE.fnmGet the mailserver that
powers
To: CF-Talk
Subject: RE: Push and CFFILE Question - one more question!
That worked! Thanks...
Now if I can solve the cfinclude inside the cffile problem I'm done!
Les
: Stick the following code above the CFCONTENT tag:
:
:CFHEADER
:NAME=content-disposition
has anyone else had this happen?
I have a query that finds old image files in a directory but when it goes
to delete a file it gets error 5 permission denied... I've tried setting
all the permissions on both the directory and individual files to full
control for everyone, but I still get
lets see your code, I've gotten errors like that when not putting the full paths in
-Original Message-
From: Eric [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 2:05 PM
To: CF-Talk
Subject: CFFile question
has anyone else had this happen?
I have a query that finds old
You might want to try setting the ColdFusion Application Server service to
run under a user account as opposed to the local system account (default) in
Win2k services, particularly if the file in question is on a mapped drive.
Afaik the local system account has read-only permissions to the files
You might want to try setting the ColdFusion Application
Server service to run under a user account as opposed to
the local system account (default) in Win2k services,
particularly if the file in question is on a mapped drive.
Afaik the local system account has read-only permissions to
On our server I have a mapped drive letter Q pointing to a directory on
another server.
I'm trying to read in a file off the server but I keep getting an error.
Can't I specify a mapped drive letter in CFFILE?
cfset File=Q:\dir1\filename.txt
cffile action=READ file=#File#
PROTECTED]]
Sent: Tuesday, June 04, 2002 1:19 PM
To: CF-Talk
Subject: CFFILE question
On our server I have a mapped drive letter Q pointing to a directory on
another server.
I'm trying to read in a file off the server but I keep getting an error.
Can't I specify a mapped drive letter in CFFILE?
cfset
What user is CF running under?
Does that user have the drive mapped?
Do you have rights as that user to that drive?
If any of this is too difficult, try using UNC file names rather than relying on
mapped drives.
(This is my standard answer for any drive mapping questions :)
Jerry Johnson
At 02:35 PM 6/4/2002 -0400, you wrote:
What user is CF running under?
The user logged in that created the mapped drive letter has Administrator
privileges.
Does that user have the drive mapped?
Yes.
Do you have rights as that user to that drive?
Administrator
If any of this is too
What user is CF running under?
The user logged in that created the mapped drive letter
has Administrator privileges.
That doesn't mean that the user account of the CF server will be able to see
the drive mapping. By default, CF runs as SYSTEM, rather than as a specific
user. You might
a
different experience with how to get to mapped drives.
Mark
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 2:12 PM
To: CF-Talk
Subject: RE: CFFILE question
What user is CF running under?
The user logged in that created the mapped drive
, June 04, 2002 3:44 PM
To: CF-Talk
Subject: RE: CFFILE question
Yes.. we have found that the cf server must have permissions and running as
that user AND That the user himself usually must be logged into the desktop
to use a mapped drive. However, UNC mappings should work regardless of
whether
This is a multi-part message in MIME format.
--=_NextPart_000__01C00793.33D72AA0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
I want to delete a folder that has an image inside of it. The image can be
either a gif or a jpg. How do I set up
wn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 3:04 PM
To: House Of Fusion
Subject: CFFILE Question
This is a multi-part message in MIME format.
--=_NextPart_000__01C00793.33D72AA0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-En
How do we do the following:
Create a fixed ASCII text file with CFFILE.
How do you specify the picture or format length for a given
column?
marlene
--
Archives:
ents of the
template are less.
Jim
-Original Message-
From: Marlene Buffa [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, May 26, 2000 10:06 AM
Subject: CFFILE question
How do we do the following:
Create a fixed ASCII text file with CFFILE.
How do you specif
74 matches
Mail list logo