I think a couple of responses you have are on the mark Steve - I had a
similar problem only recently and it was because the file was getting
deleted before the mail system could process it all.
++
Kevin Parker
++
-Original Message-
From: Steve LaBadie [mailto:slaba...
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
variab
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
I've had this same issue before. I believe the file was being deleted before
the mail was fully processed. I think the solution I came up with was to place
the file in a temporary directory then run a batch program to delete the files
from that directory in the nightly run.
Robert Harrison
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:
Good security dictates first that uploaded files should never go in the web
root (even though I'm doing that here), and also that they do not keep the
s
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 us
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 w
my little 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 I
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
Doug
- Original Message -
From: "Bob Imperial" <[EMAIL PROTECTED]&
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?
>>
>>
>> > file="#BaseDir#\index.cfm"
>> output="Website directories were created successfully on
>> #
Doug
- Original Message -
From: "Bob Imperial" <[EMAIL PROTECTED]>
To: "CF-Talk"
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.
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?
>
>
> file="#BaseDir#\index.cfm"
> output="Website directories were created successfully on
> #DateFormat(CreateODBCDate(myDate
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:
click
Just be VERY careful if you're generating CFM pages, because any
dynamic content will
On Wednesday 15 Sep 2004 17:23 pm, mayo wrote:
> The resulting page should look like the code below:
...
>
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
Advanced ColdFusion Programmer
Tel: +44
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 Quest
> 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
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
rec
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
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
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 a
04 11:37:04 -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,
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,
> 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 chang
...
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: Jedi
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
Have you tried using a UNC path?
Also, is CF running as a user that has rights to access it, by default
CF runs under LocalSystem so has full access to its own machine and
thats all
HTH
- Original Message -
From: Tony Weeg <[EMAIL PROTECTED]>
Date: Fri, 25 Jun 2004 10:43:32 -0400
Subject
Tony,
Are your cfmx services running under the localSystem account or an
administrator account? I think that sometimes your LocalSystem account
may not have rights to mapped drives, whereas if your CFMX services is
running under an administrator account, you'll have better luck.
Sincerely,
> 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
> 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
> 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 li
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]
[Su
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.
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 nee
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:
timeout="5"/>
Is there a way to not display the output?
>
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...
This will not...
This also will not,
Error number 2 = Can't find file. Try using the full path of the batch
file.
-Original Message-
From: ColdFusion Programmer [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 11:05
To: CF-Talk
Subject: Re:CFFILE Question
Craig, I don't why I get an error when I run the script on th
Nope, create a batch file and execute that.
Contents of mybatchfile.bat
copy D:\CFusionMX\wwwroot\logReport\SupportiSearches*.log
D:\CFusionMX\wwwroot\logReport\destination.log /Y
(the /Y stops prompting to overwrite existing files)
Then..
from the cf tem
ecute 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 ex
If you want the cf template to finish quickly you could always exclude
timeout value from cfexecute aswell, cf then won't wait for any console
output.
Should do the trick.
-Original Message-
From: ColdFusion Programmer [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 10:34
To: CF-Talk
S
If the files are big this will eat memory .
Consider using the underlying OS to dfo this sort of thing.
use cfexecute 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:
Have a look at both cfdirectory and cffile, between them you should be able
to do what you want.
For more info try http://livedocs.macromedia.com
Ade
-Original Message-
From: Allan Clarke [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 10:12
To: CF-Talk
Subject: CFFILE Question
He
Have a look at CFFTP.
==
Peter Tilbrook
Internet Applications Developer
Australian Building Codes Board
GPO Box 9839
CANBERRA ACT 2601
AUSTRALIA
WWW: http://www.abcb.gov.au/
E-Mail: [EMAIL PROTECTED]
Telephone: (02) 6213 6731
Mobile: 0439 401 823
Facsimile: (02) 6213 7287
-Orig
> 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 t
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 o
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
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--_=_NextPart_000_01C007DB.49E2089A
Content-Type: text/plain;
charset="iso-8859-1"
Use CFDIRECTORY to get a list of files in the directory, loop thr
You're pretty much on your own. CFFILE provides just simple means of
modifying and working with files within the file system. For fixed width
columns, I usually use the LeftJustify() function, something like:
If the file is relatively small, construct the whole file in m
47 matches
Mail list logo