Name of uploaded file before cffile

2007-10-05 Thread Matt Williams
Is it possible to get the name of the client's file before doing cffile?

I am testing for file size by doing a cfdirectory and filtering on the
neoX.tmp file name provided in the form field. If the file size is
too large, I would like to tell the user which file (this is a
multiple upload form) was denied.

I know I could upload the file to a temporary location and then move
it, but that is more than I want and defeats the purpose in a way.

I'm pretty sure the answer is no, but just wanted to double-check.

Thanks,

-- 
Matt Williams
"It's the question that drives us."

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290357
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 - alternatives?

2007-09-27 Thread Dennis Powers
>>>- http://www.radinks.com/upload/
>>>- http://swfupload.mammon.se/

>> OK - I like the swfupload best.  

SWFupload still uses the HTTP method of uploading and if your web server or
CF server is limited then you have the same problems.  You will still need
CFFile to accept the upload.

The default settings on the RadLinks product works much the same (HTTP) as
the other and you will still be limited. However, unlike the other product
it does allow for FTP file transfers but you will need an FTP server on your
web server AND access via cold fusion (CFFile) to the upload directory to
"import" the uploaded files into your application.

It should be noted that FTP transfers from the general uneducated public can
be fraught with other issues like over zealous personal firewalls blocking
port 21 and their need to download and approve the Java applet.



Best Regards,

Dennis Powers
UXB Internet - A website design and Hosting Company
690 Wolcott Road
P.O. Box 6029
Wolcott, CT  06716
Tel: (203)879-2844
http://www.uxbinternet.com/
http://www.uxb.net/ 




~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289688
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 vs FTP

2007-09-27 Thread Ian Skinner
There can also be maximum HTTP file upload size settings in ColdFusion, 
the webserver, firewall and|or proxy servers.



~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289673
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 vs FTP

2007-09-27 Thread gary gilbert
Its probably the timeout settings on the server. if it takes longer than the
default timeout ( 30 seconds ) to upload it will fail. You may want to use
 which is ten minutes

Regards
-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


CFFILE vs FTP

2007-09-27 Thread Kim Hoopingarner
I am using CFFILE to upload a 2.5M file.  When doing this, something is timing 
out.  I've been to the host site and my ISP.  Neither are finding a problem.  
What is interesting - if I FTP a 23M file using FileZilla I have no problem.   
So why am I struggling with a 2.5M file using CFFILE?  Here's my code



Upload File with ColdFusion





The file was successfully uploaded!







 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289598
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 - alternatives?

2007-09-26 Thread Kim Hoopingarner
>Look into either of these:
>
>- http://www.radinks.com/upload/
>- http://swfupload.mammon.se/
>


OK - I like the swfupload best.  But I struggle at how to incorporate this into 
my existing cfm file.   And help on putting it into a cfm form would be great.  
This form needs to have a button to select the file - and then the submit 
button will be the trigger to upload the file.

Thanks for more info... 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289562
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 - alternatives?

2007-09-26 Thread Michael Appenzellar
Look into either of these:

- http://www.radinks.com/upload/
- http://swfupload.mammon.se/

Thanks. 


Michael Appenzellar

Mirame Interactive
http://www.mirameinteractive.com
301-663-5672 x6413

-Original Message-
From: Kim Hoopingarner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 26, 2007 5:08 PM
To: CF-Talk
Subject: Re: CFFILE - alternatives?

#1 Follow Up
Found out that the CFAdmin was set to 100 M for the max post.  Drats.
So looks like I might be stuck with re-coding this...

#2 Yes - the host has other languages such as ASP.  But I'm only
familiar with coldfusion - so I'd be clueless throwing in something
different unless someone can make it simple for me.   Anyone?I'm
looking for an alternative to using CFFILE.  Thanks ahead for the ideas!




~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289553
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 - alternatives?

2007-09-26 Thread Kim Hoopingarner
#1 Follow Up
Found out that the CFAdmin was set to 100 M for the max post.  Drats.  So looks 
like I might be stuck with re-coding this...

#2 Yes - the host has other languages such as ASP.  But I'm only familiar with 
coldfusion - so I'd be clueless throwing in something different unless someone 
can make it simple for me.   Anyone?I'm looking for an alternative to using 
CFFILE.  Thanks ahead for the ideas! 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


RE: CFFILE - alternatives?

2007-09-26 Thread Dave Watts
> 1) Does anyone know a quick solution to the above problem?  
> Right now files smaller than 1.5 M go with no problem.  Is 
> there a setting some place that allots memory size to CF - 
> and someone needs to change it?

Jochem pointed out the setting in CF that lets you control this. There may
also be a limit imposed at the web server, or by some application firewall
in front of the web server. For example, I believe that the IIS ISAPI
"URLScan" filter can impose a limit on file uploads.

> 2) Is there another solution besides CFFILE that will give me 
> the same result.

CFFILE is the only mechanism within CF to accept HTTP file uploads. As
Jochem pointed out, you can also accept file uploads using other web
application programming languages.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: CFFILE - alternatives?

2007-09-26 Thread Jochem van Dieten
Kim Hoopingarner wrote:
> For some odd reason there seems to be a problem using CFFILE with my host 
> site when trying to upload files larger than 1.5M.

> 1) Does anyone know a quick solution to the above problem?  Right now files 
> smaller than 1.5 M go with no problem.  Is there a setting some place that 
> allots memory size to CF - and someone needs to change it?

Ask your host what they have configured for "Maximum Size Of Post Data": 
http://livedocs.adobe.com/coldfusion/8/htmldocs/basiconfig_05.html#1215023


> 2) Is there another solution besides CFFILE that will give me the same result.

Does your host offer other languages, like JSP or ASP?

Jochem


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289537
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 - alternatives?

2007-09-26 Thread Ben Doom
I would guess that it's not a limitation of CF, but a setting in IIS or 
Apache or whatever your webserver is.

--Ben Doom

Kim Hoopingarner wrote:
> For some odd reason there seems to be a problem using CFFILE with my host 
> site when trying to upload files larger than 1.5M.  I know it has to do with 
> memory constraints - but I still find it strange that such a small file won't 
> work.  
> 
> So I'm looking for 2 things - 
> 1) Does anyone know a quick solution to the above problem?  Right now files 
> smaller than 1.5 M go with no problem.  Is there a setting some place that 
> allots memory size to CF - and someone needs to change it?
> 
> 2) Is there another solution besides CFFILE that will give me the same 
> result.  I need to view the file system and select a file.  Then I need to 
> upload it to the host server.
> 
> Thoughts?  I've been at a loss now for too long.   Need to pull in the 
> experts.  :) 
> 
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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


CFFILE - alternatives?

2007-09-26 Thread Kim Hoopingarner
For some odd reason there seems to be a problem using CFFILE with my host site 
when trying to upload files larger than 1.5M.  I know it has to do with memory 
constraints - but I still find it strange that such a small file won't work.  


So I'm looking for 2 things - 
1) Does anyone know a quick solution to the above problem?  Right now files 
smaller than 1.5 M go with no problem.  Is there a setting some place that 
allots memory size to CF - and someone needs to change it?

2) Is there another solution besides CFFILE that will give me the same result.  
I need to view the file system and select a file.  Then I need to upload it to 
the host server.

Thoughts?  I've been at a loss now for too long.   Need to pull in the experts. 
 :) 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: cffile action="copy" nameconflict="in_your_wildest_dreams"

2007-09-19 Thread Raymond Camden
I won't pretend to speak for Adobe - but the thinking MAY have been -
with the upload action, you have no idea what the file is - therefore
name conflicts may occur more often. With a copy you _do_ know the
file.

As a general FYI, I'm sure you know there are multiple ways to handle
this problem yourself. You can use a UUID-based file name, which is
ugly, but unique, or if you can't copy over foo.txt because it exists,
try foo1, foo2, fooN until it doesn't exist.

On 9/19/07, Brad Wood <[EMAIL PROTECTED]> wrote:
> So, I admittedly haven't used cffile that much in the past-just here and
> there.  I was fiddling with something today and came to a startling
> revelation (which I'm sure most of you already know):
>
> You can't use the nameconflict attribute with action="copy".  Well you
> can-it's simply ignored.  I was like, "WTF, over?"
>
> I made my usual assumption that there is a REALLY good reason and I just
> didn't know what it was-- so I Googled for a while hoping to uncover
> this eye-opening gem of truth.
>
>
>
> Yeah, nothing.  Absolutely nothing.  Oh, there's a Livedocs comment here
> and there where someone mentions it, and SEVERAL code examples where
> people illegally tried to use nameconflict with action="copy", but
> nowhere did I find any explanation of WHY copying files always
> overwrites destination files of the same name.
>
>
>
> The benefit of being able to control name conflicts when copying files
> seems so obvious.  I mean, how dare CF assume I wish to always overwrite
> when copying?  :-)  And then they tease me by having a nameconflict
> attribute which only works for upload.
>
> Yes, yes, I am familiar with fileexists() and all that, but I use CF to
> make things easier not harder.
>
> What's worse, is no error is thrown when you try to use nameconflict
> with action="copy".  Have you ever accidentally typed something like:
>
> 
>
> Whoa, big error message in your face.  But no-not with cffile.  It just
> silently ignores the nameconflict attribute leading you to believe its
> being used.
>
>
>
> So please fill me in. Is there some underlying reason why copy always
> overwrites, or have enough people simply not requested the enhancement?
>
>
>
> ~Brad
>
>
>
> 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


cffile action="copy" nameconflict="in_your_wildest_dreams"

2007-09-19 Thread Brad Wood
So, I admittedly haven't used cffile that much in the past-just here and
there.  I was fiddling with something today and came to a startling
revelation (which I'm sure most of you already know):

You can't use the nameconflict attribute with action="copy".  Well you
can-it's simply ignored.  I was like, "WTF, over?"

I made my usual assumption that there is a REALLY good reason and I just
didn't know what it was-- so I Googled for a while hoping to uncover
this eye-opening gem of truth.

 

Yeah, nothing.  Absolutely nothing.  Oh, there's a Livedocs comment here
and there where someone mentions it, and SEVERAL code examples where
people illegally tried to use nameconflict with action="copy", but
nowhere did I find any explanation of WHY copying files always
overwrites destination files of the same name.

 

The benefit of being able to control name conflicts when copying files
seems so obvious.  I mean, how dare CF assume I wish to always overwrite
when copying?  :-)  And then they tease me by having a nameconflict
attribute which only works for upload.  

Yes, yes, I am familiar with fileexists() and all that, but I use CF to
make things easier not harder. 

What's worse, is no error is thrown when you try to use nameconflict
with action="copy".  Have you ever accidentally typed something like:



Whoa, big error message in your face.  But no-not with cffile.  It just
silently ignores the nameconflict attribute leading you to believe its
being used.

 

So please fill me in. Is there some underlying reason why copy always
overwrites, or have enough people simply not requested the enhancement?

 

~Brad



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: Help with File Upload: AJAX and CFFILE

2007-09-17 Thread Andrew Grosset
Here is a neat ajax upload script that uses javascript to create the iframe 
required for the upload:

http://www.ajax-tutorials.com/tutorial-list/resource/AJAX_file_upload/view.php

Andrew.

> > You're right, I'm just passing a string and not 
> > actually submitting a form. But why can't I 
> > assign the value of the string being passed to a 
> > variable in the form scope?
> 
> For security reasons, there are lots of restrictions with file uploads. 
> You actually have to submit a form with a file upload field, which is 
> why you need a separate frame/iframe for the form if you want to 
> remain within the same interface.
> 
> Dave Watts, CTO, Fig Leaf Software 


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

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


Re: Question about problem with CFFILE

2007-09-03 Thread Les Mizzell
Andrew Grosset wrote:
> Try using the absolute path (in destination), below is quote from CF7 docs:
> 
> "Pathname of directory in which to upload the file. If not an absolute path 
> (starting a with a drive letter and a colon, or a forward or backward slash), 
> it is relative to the ColdFusion temporary directory, which is returned by 
> the GetTempDirectory function."
> 
>> Standard Tag:
>>
>> > destination="/vservers/mySITE/htdocs/newsletters/"
>> nameConflict="overwrite"
>> fileField="nl_FILE">


This is exactly the same way I've got it set and working up on another 
couple of sites on the same host - as specified by the host.

Hmmm..

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

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


Re: Question about problem with CFFILE

2007-09-03 Thread Andrew Grosset
Try using the absolute path (in destination), below is quote from CF7 docs:

"Pathname of directory in which to upload the file. If not an absolute path 
(starting a with a drive letter and a colon, or a forward or backward slash), 
it is relative to the ColdFusion temporary directory, which is returned by the 
GetTempDirectory function."

>Standard Tag:
>
> destination="/vservers/mySITE/htdocs/newsletters/"
> nameConflict="overwrite"
> fileField="nl_FILE">
>
>
>
>
>
>1. Host says permissions on the folder are correct
>2. Host says the address is correct
>3. #cffile.serverfile# is returning the correct file name
>
>File is NOT getting written to the directory. What else could be wrong?
>
>
>CURRENT COLDFUSION VERSION AND SERVER STATS
>
>JRun4: The name of the J2EE application server ColdFusion is using.
>Enterprise - 7,0,2,142559: The version number for the server that is 
>running, such as 6,0,0.
>
>/usr/local/coldfusionmx7: Directory under which ColdFusion is installed, 
>such as C:\cfusion.
>
>Linux: Additional information provided by the operating system, such as 
>the Service Pack number.
>
>i386: The processor architecture, such as x86 for Intel Pentium processors.
>
>: The specific operating system build, such as 1381
>
>UNIX: The name of the operating system, such as Windows NT.
>
>2.6.9-55.0.2.ELsmp: The version number of the operating system, such as 4.0. 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

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


Question about problem with CFFILE

2007-09-03 Thread Les Mizzell
Standard Tag:







1. Host says permissions on the folder are correct
2. Host says the address is correct
3. #cffile.serverfile# is returning the correct file name

File is NOT getting written to the directory. What else could be wrong?


CURRENT COLDFUSION VERSION AND SERVER STATS

JRun4: The name of the J2EE application server ColdFusion is using.
Enterprise - 7,0,2,142559: The version number for the server that is 
running, such as 6,0,0.

/usr/local/coldfusionmx7: Directory under which ColdFusion is installed, 
such as C:\cfusion.

Linux: Additional information provided by the operating system, such as 
the Service Pack number.

i386: The processor architecture, such as x86 for Intel Pentium processors.

: The specific operating system build, such as 1381

UNIX: The name of the operating system, such as Windows NT.

2.6.9-55.0.2.ELsmp: The version number of the operating system, such as 4.0.



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: Help with File Upload: AJAX and CFFILE

2007-08-28 Thread Aaron Roberson
Please go ahead and send me your example JavaScript and CF scripts. I will
check swfUpload out.

Thanks,
Aaron

On 8/28/07, Web Specialist <[EMAIL PROTECTED]> wrote:
>
> Aaron,
>
> I'll suggest you to use this great javascript and Flash utility to upload
> several files. Works like a charm for me integrated with CF backend. Very
> impressive!
>
> http://swfupload.mammon.se/
>
> Cheers
>
> p.s.: If you need that scripts(javascript files and CF) please call me.
> ;-)
>
>
> 2007/8/28, Aaron Roberson <[EMAIL PROTECTED]>:
> >
> > Brian,
> > You're right, I'm just passing a string and not actually submitting a
> > form.
> > But why can't I assign the value of the string being passed to a
> variable
> > in
> > the form scope?
> >
> > I also noted that much of the scripts out there for file upload with
> AJAX
> > use iFrames. I have not never used iFrames with AJAX so I will have to
> get
> > versed in that first. Thanks for the tip and I will look around and see
> if
> > anything exists for Prototype already.
> >
> > -Aaron
> >
> > On 8/28/07, Brian Kotek <[EMAIL PROTECTED]> wrote:
> > >
> > > You can't do this in the way you are attempting. You're not actually
> > > submitting the form, you're just passing a string. If you Google
> around,
> > > you'll see that all of the AJAX file upload libraries use iFrames
> (such
> > as
> > > http://www.webtoolkit.info/ajax-file-upload.html). I'd try to follow
> > that
> > > approach. You might also check to see if there are any Prototype or
> > > Scriptaculous plugins that will do this for you.
> > >
> >
> >
> >
>
> 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

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


Re: Help with File Upload: AJAX and CFFILE

2007-08-28 Thread Web Specialist
Aaron,

I'll suggest you to use this great javascript and Flash utility to upload
several files. Works like a charm for me integrated with CF backend. Very
impressive!

http://swfupload.mammon.se/

Cheers

p.s.: If you need that scripts(javascript files and CF) please call me. ;-)


2007/8/28, Aaron Roberson <[EMAIL PROTECTED]>:
>
> Brian,
> You're right, I'm just passing a string and not actually submitting a
> form.
> But why can't I assign the value of the string being passed to a variable
> in
> the form scope?
>
> I also noted that much of the scripts out there for file upload with AJAX
> use iFrames. I have not never used iFrames with AJAX so I will have to get
> versed in that first. Thanks for the tip and I will look around and see if
> anything exists for Prototype already.
>
> -Aaron
>
> On 8/28/07, Brian Kotek <[EMAIL PROTECTED]> wrote:
> >
> > You can't do this in the way you are attempting. You're not actually
> > submitting the form, you're just passing a string. If you Google around,
> > you'll see that all of the AJAX file upload libraries use iFrames (such
> as
> > http://www.webtoolkit.info/ajax-file-upload.html). I'd try to follow
> that
> > approach. You might also check to see if there are any Prototype or
> > Scriptaculous plugins that will do this for you.
> >
>
>
> 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


RE: Help with File Upload: AJAX and CFFILE

2007-08-28 Thread Dave Watts
> You're right, I'm just passing a string and not 
> actually submitting a form. But why can't I 
> assign the value of the string being passed to a 
> variable in the form scope?

For security reasons, there are lots of restrictions with file uploads. You 
actually have to submit a form with a file upload field, which is why you need 
a separate frame/iframe for the form if you want to remain within the same 
interface.

Dave Watts, CTO, Fig Leaf Software 


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

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


Re: Help with File Upload: AJAX and CFFILE

2007-08-28 Thread Aaron Roberson
Brian,
You're right, I'm just passing a string and not actually submitting a form.
But why can't I assign the value of the string being passed to a variable in
the form scope?

I also noted that much of the scripts out there for file upload with AJAX
use iFrames. I have not never used iFrames with AJAX so I will have to get
versed in that first. Thanks for the tip and I will look around and see if
anything exists for Prototype already.

-Aaron

On 8/28/07, Brian Kotek <[EMAIL PROTECTED]> wrote:
>
> You can't do this in the way you are attempting. You're not actually
> submitting the form, you're just passing a string. If you Google around,
> you'll see that all of the AJAX file upload libraries use iFrames (such as
> http://www.webtoolkit.info/ajax-file-upload.html). I'd try to follow that
> approach. You might also check to see if there are any Prototype or
> Scriptaculous plugins that will do this for you.
>


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: Help with File Upload: AJAX and CFFILE

2007-08-28 Thread Brian Kotek
You can't do this in the way you are attempting. You're not actually
submitting the form, you're just passing a string. If you Google around,
you'll see that all of the AJAX file upload libraries use iFrames (such as
http://www.webtoolkit.info/ajax-file-upload.html). I'd try to follow that
approach. You might also check to see if there are any Prototype or
Scriptaculous plugins that will do this for you.

On 8/28/07, Aaron Roberson <[EMAIL PROTECTED]> wrote:
>
> I'm having a problem trying to use AJAX (with the Prototype framework)
> with
> the cffile tag to upload files to the server. The problem seems to be
> related to the fact that the enctype attribute of the upload form must be
> specified with the value of multipart/form-data. That specification
> requires
> that the form be posted (as opposed to "get"). Also, the cffile tag
> attribute filefield accepts the value entered into the file form field but
> when I use AJAX to pass the value to the action page with the cffile tag
> it
> does not work.
>
> Here is my form:
>
>  enctype="multipart/form-data" id="upload_form">
> 
> 
> 
>
> That is simple. Here is my AJAX (also very simple):
>
> Event.observe(window, 'load', init, false);
> function init() {
>   Event.observe('upload_form', 'submit', uploadNow);
> }
> function uploadNow(e){
> $("upload").disabled=false;
> $("statusmsg").innerHTML = ' />';
> var pars = 'fpath=' + $F('filepath');
> var myAJAX = new Ajax.Request('action.cfm', {
> method:'post',
> onSuccess:function(){
> $('status').innerHTML = 'File Upload Complete';
> },
> parameters: pars
> });
> };
>
> All that does is when the upload_form form button is clicked it runs the
> uploadNow() JavaScript function. The uploadNow() function does some
> display
> (a sexy ajax loader animated gif), then it assigns the form field
> "filepath"
> to a variable called "fpath" and then posts that variable to the action
> page.
>
> Here is the action page:
>  destination="C:\wwwroot\steadfast\www\images\" result="ustatus"
> filefield="fpath" nameconflict="makeunique">
> #ustatus.serverFileName#
>
> The cffile tag looks for a filefield called "fpath". For some reason it is
> not getting that. I also tried changing the AJAX to pass the variables
> with
> a method of "get" instead of "post" and then added the following to the
> top
> of the action page:
>
> 
>
> This does not work either. Does anyone have any ideas on how to get this
> to
> work?
>
>
> 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: Help with File Upload: AJAX and CFFILE

2007-08-28 Thread Brian Kotek
How does the Ajax.Request call know which form you want to post?

On 8/28/07, Aaron Roberson <[EMAIL PROTECTED]> wrote:
>
> I'm having a problem trying to use AJAX (with the Prototype framework)
> with
> the cffile tag to upload files to the server. The problem seems to be
> related to the fact that the enctype attribute of the upload form must be
> specified with the value of multipart/form-data. That specification
> requires
> that the form be posted (as opposed to "get"). Also, the cffile tag
> attribute filefield accepts the value entered into the file form field but
> when I use AJAX to pass the value to the action page with the cffile tag
> it
> does not work.
>
> Here is my form:
>
>  enctype="multipart/form-data" id="upload_form">
> 
> 
> 
>
> That is simple. Here is my AJAX (also very simple):
>
> Event.observe(window, 'load', init, false);
> function init() {
>   Event.observe('upload_form', 'submit', uploadNow);
> }
> function uploadNow(e){
> $("upload").disabled=false;
> $("statusmsg").innerHTML = ' />';
> var pars = 'fpath=' + $F('filepath');
> var myAJAX = new Ajax.Request('action.cfm', {
> method:'post',
> onSuccess:function(){
> $('status').innerHTML = 'File Upload Complete';
> },
> parameters: pars
> });
> };
>
> All that does is when the upload_form form button is clicked it runs the
> uploadNow() JavaScript function. The uploadNow() function does some
> display
> (a sexy ajax loader animated gif), then it assigns the form field
> "filepath"
> to a variable called "fpath" and then posts that variable to the action
> page.
>
> Here is the action page:
>  destination="C:\wwwroot\steadfast\www\images\" result="ustatus"
> filefield="fpath" nameconflict="makeunique">
> #ustatus.serverFileName#
>
> The cffile tag looks for a filefield called "fpath". For some reason it is
> not getting that. I also tried changing the AJAX to pass the variables
> with
> a method of "get" instead of "post" and then added the following to the
> top
> of the action page:
>
> 
>
> This does not work either. Does anyone have any ideas on how to get this
> to
> work?
>
>
> 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

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


Help with File Upload: AJAX and CFFILE

2007-08-28 Thread Aaron Roberson
I'm having a problem trying to use AJAX (with the Prototype framework) with
the cffile tag to upload files to the server. The problem seems to be
related to the fact that the enctype attribute of the upload form must be
specified with the value of multipart/form-data. That specification requires
that the form be posted (as opposed to "get"). Also, the cffile tag
attribute filefield accepts the value entered into the file form field but
when I use AJAX to pass the value to the action page with the cffile tag it
does not work.

Here is my form:






That is simple. Here is my AJAX (also very simple):

Event.observe(window, 'load', init, false);
function init() {
  Event.observe('upload_form', 'submit', uploadNow);
}
function uploadNow(e){
$("upload").disabled=false;
$("statusmsg").innerHTML = '';
var pars = 'fpath=' + $F('filepath');
var myAJAX = new Ajax.Request('action.cfm', {
method:'post',
onSuccess:function(){
$('status').innerHTML = 'File Upload Complete';
},
parameters: pars
});
};

All that does is when the upload_form form button is clicked it runs the
uploadNow() JavaScript function. The uploadNow() function does some display
(a sexy ajax loader animated gif), then it assigns the form field "filepath"
to a variable called "fpath" and then posts that variable to the action
page.

Here is the action page:

#ustatus.serverFileName#

The cffile tag looks for a filefield called "fpath". For some reason it is
not getting that. I also tried changing the AJAX to pass the variables with
a method of "get" instead of "post" and then added the following to the top
of the action page:



This does not work either. Does anyone have any ideas on how to get this to
work?


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


RE: CFFILE Makes No Sense - the file is there

2007-08-06 Thread Chad Gray
The file name cannot have a space on the front of the file name in a windows 
environment.

Of course you can on Mac so if you are using Mac file services on your PC 
server and a Mac made the file on the windows machine this would be possible, 
but windows file system will not like it.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 06, 2007 10:08 AM
To: CF-Talk
Subject: CFFILE Makes No Sense - the file is there

WHy is CFFILE doing this?  I'm getting an error that says it can't find the 
file and I've checked several times, the file is there, on the server in the 
correct folder with the exact file name!!!

The following information is meant for the website developer for debugging 
purposes. 

Error Occurred While Processing Request 
An exception occurred when performing a file operation COPY on files 
D:\Inetpub\wwwroot\baby\ 38035273713000.jpg and 
D:\Inetpub\wwwroot\baby\images\babycontest\2007\picture_people\Tina_Nicorette_CHARLOTTE_0806_
 38035273713000_pp.jpg. 
The cause of this exception was: java.io.FileNotFoundException: 
D:\Inetpub\wwwroot\Yobaby\ 38035273713000.jpg (The system cannot find the file 
specified). 



~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285484
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 Makes No Sense - the file is there

2007-08-06 Thread Ryan, Terrence
Are the spaces between the last \ and the file name really there, or an issue 
with email. 

If it is there it could be the source of the problem as ..baby\ 
38035273713000.jpg and ..baby\38035273713000.jpg are two different files. 

Terrence Ryan
I.T. Director
Wharton Computing and Information Technology   
E-mail:     [EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 06, 2007 10:08 AM
To: CF-Talk
Subject: CFFILE Makes No Sense - the file is there

WHy is CFFILE doing this?  I'm getting an error that says it can't find the 
file and I've checked several times, the file is there, on the server in the 
correct folder with the exact file name!!!

The following information is meant for the website developer for debugging 
purposes. 

Error Occurred While Processing Request 
An exception occurred when performing a file operation COPY on files 
D:\Inetpub\wwwroot\baby\ 38035273713000.jpg and 
D:\Inetpub\wwwroot\baby\images\babycontest\2007\picture_people\Tina_Nicorette_CHARLOTTE_0806_
 38035273713000_pp.jpg. 
The cause of this exception was: java.io.FileNotFoundException: 
D:\Inetpub\wwwroot\Yobaby\ 38035273713000.jpg (The system cannot find the file 
specified). 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285476
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 Makes No Sense - the file is there

2007-08-06 Thread Adrian Lynch
Copy the file path in the error message and put it in explorer. Can you get
to it that way? It looks like there's a space in from of the file name. Is
that right?

What about permissions. Does the CF user have permission to access this
file?

Adrian

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 06 August 2007 15:08
To: CF-Talk
Subject: CFFILE Makes No Sense - the file is there


WHy is CFFILE doing this?  I'm getting an error that says it can't find the
file and I've checked several times, the file is there, on the server in the
correct folder with the exact file name!!!

The following information is meant for the website developer for debugging
purposes.

Error Occurred While Processing Request
An exception occurred when performing a file operation COPY on files
D:\Inetpub\wwwroot\baby\ 38035273713000.jpg and
D:\Inetpub\wwwroot\baby\images\babycontest\2007\picture_people\Tina_Nicorett
e_CHARLOTTE_0806_ 38035273713000_pp.jpg.
The cause of this exception was: java.io.FileNotFoundException:
D:\Inetpub\wwwroot\Yobaby\ 38035273713000.jpg (The system cannot find the
file specified).


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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


CFFILE Makes No Sense - the file is there

2007-08-06 Thread coldfusion . developer
WHy is CFFILE doing this?  I'm getting an error that says it can't find the 
file and I've checked several times, the file is there, on the server in the 
correct folder with the exact file name!!!

The following information is meant for the website developer for debugging 
purposes. 

Error Occurred While Processing Request 
An exception occurred when performing a file operation COPY on files 
D:\Inetpub\wwwroot\baby\ 38035273713000.jpg and 
D:\Inetpub\wwwroot\baby\images\babycontest\2007\picture_people\Tina_Nicorette_CHARLOTTE_0806_
 38035273713000_pp.jpg. 
The cause of this exception was: java.io.FileNotFoundException: 
D:\Inetpub\wwwroot\Yobaby\ 38035273713000.jpg (The system cannot find the file 
specified). 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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


Attribute validation error for tag CFFILE

2007-07-30 Thread Tom Hines
I get an error in our shopping cart application when I add a product. After I 
use application browse button to specify an image on the same drive and then 
click the submit button. I get the following error from the application and the 
application log.

Error Message from Application
Attribute validation error for tag CFFILE.  
The value of the attribute destination, which is currently "/eStore/images/", 
is invalid.  

>From the Application Log
"Error","jrpp-47","07/30/07","14:47:34","eCM","Attribute validation error for 
tag CFFILE.The value of the attribute 

destination, which is currently ""/eStore/images/"", is invalid. The specific 
sequence of files included or processed 

is: E:\web\loadingdoc\shell.cfm, line: 81 "

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

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


RE: name conflicts with cffile action="move"

2007-07-23 Thread Ben Nadel
I always thought it would be COOL if MOVE and COPY did handle the naming
conflict as well. I can't see any downside to giving users the option to
leverage CF for that.


..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-Original Message-
From: Rebecca Younes [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 23, 2007 11:38 AM
To: CF-Talk
Subject: name conflicts with cffile action="move"

Is there any reason why cffile action="move" doesn't support the
nameconflict attribute, like action="upload", or is this just a design
oversight?

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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


name conflicts with cffile action="move"

2007-07-23 Thread Rebecca Younes
Is there any reason why cffile action="move" doesn't support the nameconflict 
attribute, like action="upload", or is this just a design oversight?

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

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


RE: cffile to remote pc

2007-05-30 Thread Adkins, Randy
ColdFusion Application Server must have access to the share.
Check the user account that CF is running under. Might need to change it
In services to use your account. 

-Original Message-
From: Dave Francis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 30, 2007 10:46 AM
To: CF-Talk
Subject: cffile to remote pc

I eventually want to upload a file from my desktop, running CFMX 7.0.2
developer, to a remote pc. As a start, I'm trying cfdirectory to check
the connection, but getting absolutely nothing. Zero records returned,
and no error.

 

My directory attribute looks like: directory="//111.222.333.444/C$/"
where C$ is the windows share. I also have this drive mapped as a
network drive, so I don't think it's a permissions thing.

 

TIA, Dave





~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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


cffile to remote pc

2007-05-30 Thread Dave Francis
I eventually want to upload a file from my desktop, running CFMX 7.0.2
developer, to a remote pc. As a start, I'm trying cfdirectory to check the
connection, but getting absolutely nothing. Zero records returned, and no
error.

 

My directory attribute looks like: directory="//111.222.333.444/C$/" where
C$ is the windows share. I also have this drive mapped as a network drive,
so I don't think it's a permissions thing.

 

TIA, Dave



~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279571
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 copy to another server - (Access is denied).

2007-05-26 Thread Robertson-Ravo, Neil (RX)
You should probably create a specific ColdFusion service account and assign
to s group on the domain and start ColdFusion up with that (no doubt starts
as Local System now as most people never change that). That way you can
control the access that service across the network.

 



"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-Original Message-
From: James Buckingham
To: CF-Talk
Sent: Fri May 25 21:45:17 2007
Subject: CFFILE copy to another server - (Access is denied).

Hi guys,

I'm trying to find a way that I can copy a file from one server to another
(there Windows 2003 servers) using either CFFILE or a CFEXECUTE command to
run what I need through Xcopy or Robocopy.

At the moment I'm getting a error message telling me "The cause of this
exception was: java.io.FileNotFoundException:
\\xx.xx.xx.xx\CFTEST-Upload\TEST.txt (Access is denied). " if I try this.

Looking around online I found this article which could explain how to solve
this...
http://forums.devshed.com/coldfusion-development-84/writing-a-file-to-anothe
r-server-364543.html

..what I'm wondering though is if there is any security risks in giving
ColdFusion these kinds of permissions to start writing to another server?

Cheers,
James



~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279325
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 copy to another server - (Access is denied).

2007-05-25 Thread Ravi Gehlot
James,

You have got a Windows sharing problem there with you permissions. That 
is not a problem with ColdFusion. There is a setting for  called 
mode which can be set to 777 for Linux systems but this does not apply 
for you. Check your shared drive in both machines.

Ravi.

James Buckingham wrote:
> Hi guys,
>
> I'm trying to find a way that I can copy a file from one server to another 
> (there Windows 2003 servers) using either CFFILE or a CFEXECUTE command to 
> run what I need through Xcopy or Robocopy.
>
> At the moment I'm getting a error message telling me "The cause of this 
> exception was: java.io.FileNotFoundException: 
> \\xx.xx.xx.xx\CFTEST-Upload\TEST.txt (Access is denied). " if I try this.
>
> Looking around online I found this article which could explain how to solve 
> this...
> http://forums.devshed.com/coldfusion-development-84/writing-a-file-to-another-server-364543.html
>
> .what I'm wondering though is if there is any security risks in giving 
> ColdFusion these kinds of permissions to start writing to another server?
>
> Cheers,
> James
>
> 

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


CFFILE copy to another server - (Access is denied).

2007-05-25 Thread James Buckingham
Hi guys,

I'm trying to find a way that I can copy a file from one server to another 
(there Windows 2003 servers) using either CFFILE or a CFEXECUTE command to run 
what I need through Xcopy or Robocopy.

At the moment I'm getting a error message telling me "The cause of this 
exception was: java.io.FileNotFoundException: 
\\xx.xx.xx.xx\CFTEST-Upload\TEST.txt (Access is denied). " if I try this.

Looking around online I found this article which could explain how to solve 
this...
http://forums.devshed.com/coldfusion-development-84/writing-a-file-to-another-server-364543.html

.what I'm wondering though is if there is any security risks in giving 
ColdFusion these kinds of permissions to start writing to another server?

Cheers,
James

~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


RE: Renaming Files with CFFILE

2007-05-24 Thread Andy Matthews
A good alternative would be to resize the original to something just larger
than 100x150, say 105x150 or 100x154 (whichever site is longest), then crop
the remaining pixels to fit the intended size. Once the photo is that small
they're not going to notice much difference between 150 pixels and 154
pixels.

-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 10:21 AM
To: CF-Talk
Subject: Re: Renaming Files with CFFILE

On Thursday 24 May 2007, Andy Matthews wrote:
> If you resize an image to 100x150 it'll skew the ratio unless you crop it.

Easy and obvious solutions include resizing to something slightly different
(102x147) but with the same aspect, or using CSS to do the cropping if the
CF solution can't.

But yeah, clients are pains - nice to be have enough work that you can feel
you can drop them - means you have the power, not them !

--
Tom Chiverton
Helping to enormously innovate global ROI
on: http://thefalken.livejournal.com



~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: Renaming Files with CFFILE

2007-05-24 Thread Tom Chiverton
On Thursday 24 May 2007, Andy Matthews wrote:
> If you resize an image to 100x150 it'll skew the ratio unless you crop it.

Easy and obvious solutions include resizing to something slightly different 
(102x147) but with the same aspect, or using CSS to do the cropping if the CF 
solution can't.

But yeah, clients are pains - nice to be have enough work that you can feel 
you can drop them - means you have the power, not them !

-- 
Tom Chiverton
Helping to enormously innovate global ROI
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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


RE: Renaming Files with CFFILE

2007-05-24 Thread Andy Matthews
If you resize an image to 100x150 it'll skew the ratio unless you crop it. 

-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 10:02 AM
To: CF-Talk
Subject: Re: Renaming Files with CFFILE

On Thursday 24 May 2007, Les Mizzell wrote:
> "We just need to be able to export directly out of the camera. 

How did the ratio ever get broken then ?

--
Tom Chiverton
Helping to enormously deliver cross-media design-patterns
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.




~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

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


Re: Renaming Files with CFFILE

2007-05-24 Thread Tom Chiverton
On Thursday 24 May 2007, Les Mizzell wrote:
> "We just need to be able to export directly out of the camera. 

How did the ratio ever get broken then ?

-- 
Tom Chiverton
Helping to enormously deliver cross-media design-patterns
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: Renaming Files with CFFILE

2007-05-24 Thread Les Mizzell
> The last I saw in this category was somebody who absolutely wanted to 
> enter several values in a text field using the Enter key in order to enter 
> several lines...

Mine was a client with an admin for their image gallery. It was set up 
for a main image and a thumb.

First round was my mistake. I trusted the client. WRONG!! I showed them 
how to use the system and how to properly size the images for use. The 
input fields *clearly* stated that the thumbs needed to be 100x150px and 
the main images could be no wider than 550px.

A week later, I get a phone call asking why their site isn't working and 
I find they've placed 20 or so full sized 3.5 to 6 meg images in as 
thumbnails! Their index page was weighing in at over 100 megs at this point!

I should have know better...

So, I rewrote it with the proper validation and file size checking as it 
should be. I immediately get an angry phone call - The admin isn't 
accepting our images!!".

"Have you sized them the way I showed you in your photo editing software?"

"We don't have time to edit anything. Make it so we can just put 
whatever we want in."

I went back in again and added imageCFC to take care of that. Which 
seemed to be working pretty good.

Another angry phone call. "Out thumbnails are DISTORTED!!!"

"Have you sized them correctly?"

"We told you we wanted the application to do that!"

"Well, they're getting sized to 100x150, so if you put something larger 
in there, at least the ratio needs to be 2/3 or it's going to 
proportioned incorrectly. I originally showed you how to use the 
application and you've got image editing software to do your sizing and 
optimization for you. You'll be much happier with the results if you do 
it that way."

"We just need to be able to export directly out of the camera. Got no 
time to fool with anything else. We've asked you to fix it. So FIX IT!"

I never could get the imageCFC "crop" function to work correctly for me, 
and even if i had, they wouldn't have been happy with how the crop was 
working.

Because of this and a number of other issues with the client, I finally 
"fired" them. Couldn't take any more...



~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

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


Re: Renaming Files with CFFILE

2007-05-24 Thread Claude Schneegans
 >>you put in place, somebody comes up with
*something* that mucks up the works and refuses to "do it right"

The last I saw in this category was somebody who absolutely wanted to 
enter several values
in a text field using the Enter key in order to enter several lines...
Of course, this submit the form instantly, thus the frustration ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

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


RE: Renaming Files with CFFILE

2007-05-24 Thread Bobby Hartsfield
There's all kinds of stuff available when you upload a file. 

cffile.serverFileExt will hold the extension

Dump #cffile# for the rest

#listlast(filename, ".")# will get you the extension too ;-)

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 23, 2007 10:50 PM
To: CF-Talk
Subject: Renaming Files with CFFILE

It's so difficult accounting for every single "Stupid User Trick" that 
you often just want to run screaming off into the sunset at times. 
Regardless of what safeguards (client *and* server side validation, 
cfquery param, blah...blah) you put in place, somebody comes up with 
*something* that mucks up the works and refuses to "do it right" and 
your client says "YEs, that's stupid, but figure out how to deal with 
that!".

Now that I've got that off my chest...

I'm dealing with a CFFILE field. It accepts text, .doc, and .xls files. 
I do *not* want to accept the original file names, because folks are 
pretty much idiots and will name a file anything.

Here's one somebody tried to enter as a test today:

"Insurance Enroll. Info for Germany Partnership for Jason & Tommy..xls"

Yup, that whole line of text is an actual file name.

OK, I want to rename this with the record ID that goes into the 
database, so "397564.xls" looks great to me instead of the above.
Got no problem with the record ID part - how do I extract the correct 
file extension to tag onto the renamed file, since it can vary, and 
since it can look like something really stupid like the above .xls file?





~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

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


Re: Renaming Files with CFFILE

2007-05-23 Thread James Holmes
You can use listlast() with . as the delimiter.

On 5/24/07, Les Mizzell <[EMAIL PROTECTED]> wrote:

> OK, I want to rename this with the record ID that goes into the
> database, so "397564.xls" looks great to me instead of the above.
> Got no problem with the record ID part - how do I extract the correct
> file extension to tag onto the renamed file, since it can vary, and
> since it can look like something really stupid like the above .xls file?


-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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


Renaming Files with CFFILE

2007-05-23 Thread Les Mizzell
It's so difficult accounting for every single "Stupid User Trick" that 
you often just want to run screaming off into the sunset at times. 
Regardless of what safeguards (client *and* server side validation, 
cfquery param, blah...blah) you put in place, somebody comes up with 
*something* that mucks up the works and refuses to "do it right" and 
your client says "YEs, that's stupid, but figure out how to deal with 
that!".

Now that I've got that off my chest...

I'm dealing with a CFFILE field. It accepts text, .doc, and .xls files. 
I do *not* want to accept the original file names, because folks are 
pretty much idiots and will name a file anything.

Here's one somebody tried to enter as a test today:

"Insurance Enroll. Info for Germany Partnership for Jason & Tommy..xls"

Yup, that whole line of text is an actual file name.

OK, I want to rename this with the record ID that goes into the 
database, so "397564.xls" looks great to me instead of the above.
Got no problem with the record ID part - how do I extract the correct 
file extension to tag onto the renamed file, since it can vary, and 
since it can look like something really stupid like the above .xls file?



~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: IIS6 and Client Certs breaks CFFILE Upload

2007-04-11 Thread Bobby Schuchert
>that should be "after days"
>
>On 4/9/07, Zaphod Beeblebrox <[EMAIL PROTECTED]> wrote:
>> >

~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: IIS6 and Client Certs breaks CFFILE Upload

2007-04-09 Thread Zaphod Beeblebrox
that should be "after days"

On 4/9/07, Zaphod Beeblebrox <[EMAIL PROTECTED]> wrote:
> I've been struggling with this also.  If I remember correctly, it's a
> problem with the implementation of certs in IIS.  Something about the
> packet size and IIS not wanting to allow a large enough packet size.
> In the end, after day of trying to get it to work correctly, I
> rerouted the uploads through a secondary site.
>
>
> On 4/9/07, Bobby Schuchert <[EMAIL PROTECTED]> wrote:
> > We are using SSL and Client Certificates on an IIS6 box and having trouble 
> > with CFFILE upload. For some reason cffile upload no longer will work for a 
> > file over 50k in size. We can turn off "require client certificates" in IIS 
> > and the upload form works nicely. I even uploaded a 102mb avi file to 
> > verify that it worked. As soon as the certificate requirement is turned on, 
> > it dies. By dies, I mean it shows nothing but a white screen. It doesn't 
> > show an error. The upload form worked fine on our old win2k box even with 
> > SSL and client certs. Adobe posted this http://www.adobe.com/go/8d933f86 
> > but the solution does not work.
> >
> > Does anyone have any ideas? Turning off client certs permanently is not an 
> > option as this is a government requirement.
> >
> > Thanks.
> >
> > 

~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

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


Re: IIS6 and Client Certs breaks CFFILE Upload

2007-04-09 Thread Zaphod Beeblebrox
I've been struggling with this also.  If I remember correctly, it's a
problem with the implementation of certs in IIS.  Something about the
packet size and IIS not wanting to allow a large enough packet size.
In the end, after day of trying to get it to work correctly, I
rerouted the uploads through a secondary site.


On 4/9/07, Bobby Schuchert <[EMAIL PROTECTED]> wrote:
> We are using SSL and Client Certificates on an IIS6 box and having trouble 
> with CFFILE upload. For some reason cffile upload no longer will work for a 
> file over 50k in size. We can turn off "require client certificates" in IIS 
> and the upload form works nicely. I even uploaded a 102mb avi file to verify 
> that it worked. As soon as the certificate requirement is turned on, it dies. 
> By dies, I mean it shows nothing but a white screen. It doesn't show an 
> error. The upload form worked fine on our old win2k box even with SSL and 
> client certs. Adobe posted this http://www.adobe.com/go/8d933f86 but the 
> solution does not work.
>
> Does anyone have any ideas? Turning off client certs permanently is not an 
> option as this is a government requirement.
>
> Thanks.
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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


IIS6 and Client Certs breaks CFFILE Upload

2007-04-09 Thread Bobby Schuchert
We are using SSL and Client Certificates on an IIS6 box and having trouble with 
CFFILE upload. For some reason cffile upload no longer will work for a file 
over 50k in size. We can turn off "require client certificates" in IIS and the 
upload form works nicely. I even uploaded a 102mb avi file to verify that it 
worked. As soon as the certificate requirement is turned on, it dies. By dies, 
I mean it shows nothing but a white screen. It doesn't show an error. The 
upload form worked fine on our old win2k box even with SSL and client certs. 
Adobe posted this http://www.adobe.com/go/8d933f86 but the solution does not 
work.

Does anyone have any ideas? Turning off client certs permanently is not an 
option as this is a government requirement.

Thanks.

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


Re: Delete contents of a directory cfdirectory or cffile

2007-04-06 Thread Charlie Griefer
(re-sending)

btw it would be much easier to loop over the query object -as- a query
(instead of an index loop).


 


On 4/6/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> you tell me :)
>
> what's the issue.  getting an error?  files not being deleted?
>
> On 4/6/07, Deepak Gupta <[EMAIL PROTECTED]> wrote:
> > I am trying to do this
> >  > directory="#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile" 
> > filter="*.zip">
> >
> >
> >
> > 
> >
> >  > file="#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile\#Files[i]#>
> >
> > 
> >
> > Wats goin wrong here??


-- 
Charlie Griefer


"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."

~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

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


Re: Delete contents of a directory cfdirectory or cffile

2007-04-06 Thread Josh Nathanson
I think at the end of your cffile you'll need

#Files[i].filename#

although I'm not sure if that's the name of the column in the Files 
query.

The best way to figure it out is to dump your query var "Files" and see what 
it produces.  This will give you insight into what's going on and what 
you'll need to do.

-- Josh

- Original Message - 
From: "Deepak Gupta" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Friday, April 06, 2007 3:07 PM
Subject: Re: Delete contents of a directory cfdirectory or cffile


>I am trying to do this
>  directory="#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile" 
> filter="*.zip">
>
>
>
> 
>
>  file="#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile\#Files[i]#>
>
> 
>
> Wats goin wrong here??
>
>>sorry, i should have specified that it returns a query object of the
>>files in the directory :)
>>
>>On 4/6/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
>>> >
>
> 

~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: Delete contents of a directory cfdirectory or cffile

2007-04-06 Thread Deepak Gupta
I am trying to do this






http://www.adobe.com/products/coldfusion?sdid=RVJR

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


Re: Delete contents of a directory cfdirectory or cffile

2007-04-06 Thread Charlie Griefer
sorry, i should have specified that it returns a query object of the
files in the directory :)

On 4/6/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> cfdirectory returns a query object.  loop over the results and use
> cffile action="delete".
>
> On 4/6/07, Deepak Gupta <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > I need to create a scheduled task at the server level, the task will run a 
> > script that actually deletes all the contents of a folder. How i can do 
> > that?
> >
> > I tried using cfdirectory but it deletes the whole directory. How I can 
> > just delete the contents of a directory not the directory itself and run 
> > that every night.
> >
> > Please suggest me a way to do that.
> >
> > DG
> >
> > 

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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


Re: Delete contents of a directory cfdirectory or cffile

2007-04-06 Thread Charlie Griefer
cfdirectory returns a query object.  loop over the results and use
cffile action="delete".

On 4/6/07, Deepak Gupta <[EMAIL PROTECTED]> wrote:
> Hi
>
> I need to create a scheduled task at the server level, the task will run a 
> script that actually deletes all the contents of a folder. How i can do that?
>
> I tried using cfdirectory but it deletes the whole directory. How I can just 
> delete the contents of a directory not the directory itself and run that 
> every night.
>
> Please suggest me a way to do that.
>
> DG
>
> 

~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

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


Re: Delete contents of a directory cfdirectory or cffile

2007-04-06 Thread Deepak Gupta
Can anyone help me with this
> Hi
> 
> I need to create a scheduled task at the server level, the task will 
> run a script that actually deletes all the contents of a folder. How i 
> can do that?
> 
> I tried using cfdirectory but it deletes the whole directory. How I 
> can just delete the contents of a directory not the directory itself 
> and run that every night.
> 
> Please suggest me a way to do that.
> 
DG

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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


Delete contents of a directory cfdirectory or cffile

2007-04-06 Thread Deepak Gupta
Hi

I need to create a scheduled task at the server level, the task will run a 
script that actually deletes all the contents of a folder. How i can do that?

I tried using cfdirectory but it deletes the whole directory. How I can just 
delete the contents of a directory not the directory itself and run that every 
night.

Please suggest me a way to do that.

DG

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


RE: Having difficulty with cffile on IIS7 and Vista

2007-02-22 Thread Sandra Clark
Thanks Richard,

I figured that out late last night.  I haven't had to write code for a
cffile in years so I forgot that and in the blur of upgrading to Vista and
IIS7 with a more manual install of ColdFusion, I of course, decided to blame
the configuration rather than my code!


Sandra Clark
=
http://www.shayna.com
Training and Consulting  in CSS and Accessibility
Team Fusebox

-Original Message-
From: Richard Cooper [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 22, 2007 7:48 AM
To: CF-Talk
Subject: Re: Having difficulty with cffile on IIS7 and Vista

Your specifying the form field value where you should be putting the form
field
i.e.
filefield="fileuploadfiled"
not 
filefield="#FORM.fileuploadfiled#"





~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/

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


Re: Having difficulty with cffile on IIS7 and Vista

2007-02-22 Thread Richard Cooper
Your specifying the form field value where you should be putting the form field
i.e.
filefield="fileuploadfiled"
not 
filefield="#FORM.fileuploadfiled#"



~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2. 
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/

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


Having difficulty with cffile on IIS7 and Vista

2007-02-21 Thread Sandra Clark
Trying to upload a file through an HTML form.  When I hit the http://www.shayna.com
Training and Consulting  in CSS and Accessibility
Team Fusebox




~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270347
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 is not waiting for cfexecute to finish.

2007-02-18 Thread Casey Dougall
Thanks all for replying, Matt, that's what I was looking for. I remember it
from WACK but couldn't get google to locate it for me.

I believe the timeout setting of cfexecute was working all along.

In the end this was a stupid mistake on my part. When the excel file only
had one worksheet it didn't create the file I was looking to read. Duh!

Casey

On 2/18/07, Matt Quackenbush <[EMAIL PROTECTED]> wrote:
>
> This might do the trick for you...
>
> http://www.petefreitag.com/item/85.cfm
>
> For what it's worth, I would strongly recommend *against* a previous
> suggestion of using a loop that runs until the file is created; that could
> be disastrous in the event that the file writing code has an error.
>
>
> I would have though by placing a timeout on cfexecute, the remainder of
> the
> > script would hold off before running it's stuff. Doesn't seem to be
> > working.
> > I'm converting an excel document to html and this process works fine. As
> > soon as this has finished I need to read one of the files so I can grab
> > the
> > worksheet names. I'm getting File Not Found errors, and the file is
> there
> > but I think it's because I need another 15 to 30 seconds before it's
> > ready.
> >
> > Anyone have a suggestion for pausing a template?
> >
> > --
> > Casey
> >
>
>
> 

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270078
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 is not waiting for cfexecute to finish.

2007-02-18 Thread Matt Quackenbush
This might do the trick for you...

http://www.petefreitag.com/item/85.cfm

For what it's worth, I would strongly recommend *against* a previous
suggestion of using a loop that runs until the file is created; that could
be disastrous in the event that the file writing code has an error.


I would have though by placing a timeout on cfexecute, the remainder of the
> script would hold off before running it's stuff. Doesn't seem to be
> working.
> I'm converting an excel document to html and this process works fine. As
> soon as this has finished I need to read one of the files so I can grab
> the
> worksheet names. I'm getting File Not Found errors, and the file is there
> but I think it's because I need another 15 to 30 seconds before it's
> ready.
>
> Anyone have a suggestion for pausing a template?
>
> --
> Casey
>


~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270074
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 is not waiting for cfexecute to finish.

2007-02-17 Thread Mik Muller
Or this...



Michael


At 11:01 AM 2/17/2007, you wrote:
>You could do a cffile check for the existence of the file (inside a
>try/catch) in a loop with a limit to make sure the file is there
>before doing the read.
>
>> I would have though by placing a timeout on cfexecute, the remainder of the
>> script would hold off before running it's stuff. Doesn't seem to be working.
>> I'm converting an excel document to html and this process works fine. As
>> soon as this has finished I need to read one of the files so I can grab the
>> worksheet names. I'm getting File Not Found errors, and the file is there
>> but I think it's because I need another 15 to 30 seconds before it's ready.
>>
>> Anyone have a suggestion for pausing a template?
>
>

~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion

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


Re: cffile is not waiting for cfexecute to finish.

2007-02-17 Thread Kris Jones
You could do a cffile check for the existence of the file (inside a
try/catch) in a loop with a limit to make sure the file is there
before doing the read.

> I would have though by placing a timeout on cfexecute, the remainder of the
> script would hold off before running it's stuff. Doesn't seem to be working.
> I'm converting an excel document to html and this process works fine. As
> soon as this has finished I need to read one of the files so I can grab the
> worksheet names. I'm getting File Not Found errors, and the file is there
> but I think it's because I need another 15 to 30 seconds before it's ready.
>
> Anyone have a suggestion for pausing a template?

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/

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


cffile is not waiting for cfexecute to finish.

2007-02-17 Thread Casey Dougall
I would have though by placing a timeout on cfexecute, the remainder of the
script would hold off before running it's stuff. Doesn't seem to be working.
I'm converting an excel document to html and this process works fine. As
soon as this has finished I need to read one of the files so I can grab the
worksheet names. I'm getting File Not Found errors, and the file is there
but I think it's because I need another 15 to 30 seconds before it's ready.

Anyone have a suggestion for pausing a template?

-- 
Casey


~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

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


Disregard Stupid CFFILE message

2007-01-19 Thread Bruce Sorge
I was just informed by the Sys Admins that I cannot upload files to their
production servers, so please disregard and thanks for the tips.

-- 
Bruce Sorge

"I'm a mawg: half man, half dog. I'm my own best friend!"


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: Stupid CFFILE

2007-01-19 Thread Bruce Sorge
OK, so I did this on my local machine now rather than the server, and I get
this message:

An exception occurred when performing a file operation copy on files
C:\Inetpub\wwwroot\DONE\election_procedure\tempBylaws\Roser.doc and
C:\Inetpub\wwwroot\DONE\election_procedure\Bylaws.

I hardcoded the directory path's into the code assuming that it was crapping
out on the variables I previously set, but no joy. Back to Google I guess.


Bruce Sorge

"I'm a mawg: half man, half dog. I'm my own best friend!"


On 1/19/07, Peterson, Chris <[EMAIL PROTECTED]> wrote:
>
> Maybe delay the move a bit?  Try separating the file placement and the
> move to different CFM templates and run them independently.  I have had
> issues writing and then moving a file because the handle was not
> completely released when I tried to move it =)
>
> Chris
>


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


RE: Stupid CFFILE

2007-01-19 Thread Peterson, Chris
Maybe delay the move a bit?  Try separating the file placement and the
move to different CFM templates and run them independently.  I have had
issues writing and then moving a file because the handle was not
completely released when I tried to move it =)

Chris 

-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 3:57 PM
To: CF-Talk
Subject: Re: Stupid CFFILE

They are on the same partition. This is a test server that has only one
partition and currently this is the only app residing on it. The file I
am
trying to move was loaded up by another part of this app using CFFILE
and
there are no issues with that.

Bruce Sorge

"I'm a mawg: half man, half dog. I'm my own best friend!"


On 1/19/07, Kris Jones <[EMAIL PROTECTED]> wrote:
>
> The two directories do not reside on different partitions do they?
> There is a note in the Livedocs to the effect that the java library
> involved has an issue with that.
>
>


--




~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: Stupid CFFILE

2007-01-19 Thread Bruce Sorge
They are on the same partition. This is a test server that has only one
partition and currently this is the only app residing on it. The file I am
trying to move was loaded up by another part of this app using CFFILE and
there are no issues with that.

Bruce Sorge

"I'm a mawg: half man, half dog. I'm my own best friend!"


On 1/19/07, Kris Jones <[EMAIL PROTECTED]> wrote:
>
> The two directories do not reside on different partitions do they?
> There is a note in the Livedocs to the effect that the java library
> involved has an issue with that.
>
>


--


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: Stupid CFFILE

2007-01-19 Thread Kris Jones
The two directories do not reside on different partitions do they?
There is a note in the Livedocs to the effect that the java library
involved has an issue with that.

> Is there a possibility of a permission error?  The CF/Jrun service does not 
> have permission to read/write/copy in one or more of those directories?  I 
> know win2k3 has given us grief by being locked down so tight in cases similar 
> to this.  That is the only suggestion I can give off the top of my head.

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


RE: Stupid CFFILE

2007-01-19 Thread Ian Skinner
But I am getting an error that says Attribute validation error in CFFILE. So 
what gives? The server is a Windows 2K3 server running CFMX 7.2.

Is there a possibility of a permission error?  The CF/Jrun service does not 
have permission to read/write/copy in one or more of those directories?  I know 
win2k3 has given us grief by being locked down so tight in cases similar to 
this.  That is the only suggestion I can give off the top of my head.




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

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"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. 




~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Stupid CFFILE

2007-01-19 Thread Bruce Sorge
I am creating an app that merely moves a file from one folder to another. I
have this script:


tempBylawPath = #ExpandPath("../tempBylaws")#;
currentBylawPath = #ExpandPath("../Bylaws")#;
archiveBylawPath = #ExpandPath("../ArchiveBylaws")#;





I dumped out the source and the destination and they show as valid paths,
and the source is a valid path and filename that exists. But I am getting an
error that says Attribute validation error in CFFILE. So what gives?
The server is a Windows 2K3 server running CFMX 7.2.

-- 
Bruce Sorge

"I'm a mawg: half man, half dog. I'm my own best friend!"


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: Problems with CFFile. Error 997 Overlapping I/O

2007-01-10 Thread J W
Update: Interestingly enough a reboot fixed this. Normally I can just switch
accounts and restart the service, but for whatever reason a reboot was what
was needed...

J

On 1/10/07, J W <[EMAIL PROTECTED]> wrote:
>
> Here is a strange one..
>
> I have to copy files from on server to another using cffile. Under CFMX
> 6.1 I just changed the CF services to login to an account that had rights
> to copy files from on server to another. Simple and easy. Now with CF7, I
> attempt to change the account to something other than local system, and I
> end up with this error
>
> Error 997: Overlapped I/O Operation in progress
>
> Any ideas whats going on here? I should mention I am on IIS6, and windows
> 2003 server r2.
>
> Thanks,
> Jeff
>


~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Problems with CFFile. Error 997 Overlapping I/O

2007-01-10 Thread J W
Here is a strange one..

I have to copy files from on server to another using cffile. Under
CFMX 6.1I just changed the CF services to login to an account that had
rights to
copy files from on server to another. Simple and easy. Now with CF7, I
attempt to change the account to something other than local system, and I
end up with this error

Error 997: Overlapped I/O Operation in progress

Any ideas whats going on here? I should mention I am on IIS6, and windows
2003 server r2.

Thanks,
Jeff


~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


RE: CFFILE - Upload and rename at the same time?

2007-01-03 Thread Bobby Hartsfield
It would need to be 2 separate cffiles afaik. Most people however, like to
upload files to temp folders, do some processing then move it to its final
home. You CAN move and rename at the same time with one cffile... just give
the destination the new path and file name

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 6:55 PM
To: CF-Talk
Subject: CFFILE - Upload and rename at the same time?

Is there a way to upload and rename a file at the same time using 
CFFILE, or does that need to be two separate operations?

I'm using a function to filter out spaces and unwanted characters in the 
file names

like:
#filterFilename(cffile.serverfile)#

  - and this works after the fact in a separate cffile operation - but I 
wanted to try and optimize my code a little



~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265594
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 - Upload and rename at the same time?

2007-01-03 Thread Doug Brown
Would need to be two seperate actions.

IE:

 
  
  

Doug B.


~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


CFFILE - Upload and rename at the same time?

2007-01-03 Thread Les Mizzell
Is there a way to upload and rename a file at the same time using 
CFFILE, or does that need to be two separate operations?

I'm using a function to filter out spaces and unwanted characters in the 
file names

like:
#filterFilename(cffile.serverfile)#

  - and this works after the fact in a separate cffile operation - but I 
wanted to try and optimize my code a little

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265581
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 action=read does FILE.fileSize still work?

2006-12-18 Thread Massimo Foti
This will retrieve the size of any file:
http://www.olimpo.ch/tmt/cfc/tmt_file_io/ 
http://www.olimpo.ch/tmt/cfc/tmt_file_io/api.htm#method_getFileSize

  
Massimo Foti, web-programmer for hire
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com
  


~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


RE: cffile action=read does FILE.fileSize still work?

2006-12-18 Thread Bobby Hartsfield
Cffile action read wont give you anything more than the content of the file.
A len(myfile) /1024 may give you the kilobytes though :-)


#len(myfile) / 1024# kb

Or...you can cfdirectory the parent dir of the file and use a filter of the
files name. then the var you want is 'size'

http://acoderslife.com
 

 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 9:46 AM
To: CF-Talk
Subject: cffile action=read does FILE.fileSize still work?

Good morning,

I'm sure this is a simple one for most of you, but I forget. If I perform a
cffile action="read" etc ...
on an image file, I should be able to get #FILE.fileSize# correct? I was
able to do it using action="upload".

Thanks

D



~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264306
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 action=read does FILE.fileSize still work?

2006-12-18 Thread Doug Brown
Yeah, what he said :)



- Original Message -
From: "Peterson, Chris" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Monday, December 18, 2006 7:54 AM
Subject: RE: cffile action=read does FILE.fileSize still work?


> To elaborate, you can use  with the filter attribute to
> only list the file you want, something like this:
>
>  name="dirList">
>
> Then you can check the size like #dirList.size#
>
> Chris
>
> -Original Message-
> From: Doug Brown [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 18, 2006 9:53 AM
> To: CF-Talk
> Subject: Re: cffile action=read does FILE.fileSize still work?
>
> I may be wrong, but I believe that you can only do that via
> 
> The read pretty much does only that "read" the contents of the file.
>
>
>
> Doug
>
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "CF-Talk" 
> Sent: Monday, December 18, 2006 7:46 AM
> Subject: cffile action=read does FILE.fileSize still work?
>
>
> > Good morning,
> >
> > I'm sure this is a simple one for most of you, but I forget. If I
> perform
> a cffile action="read" etc ...
> > on an image file, I should be able to get #FILE.fileSize# correct? I
> was
> able to do it using action="upload".
> >
> > Thanks
> >
> > D
> >
> >
>
>
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


RE: cffile action=read does FILE.fileSize still work?

2006-12-18 Thread Peterson, Chris
To elaborate, you can use  with the filter attribute to
only list the file you want, something like this:

 

Then you can check the size like #dirList.size#

Chris

-Original Message-
From: Doug Brown [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 9:53 AM
To: CF-Talk
Subject: Re: cffile action=read does FILE.fileSize still work?

I may be wrong, but I believe that you can only do that via

The read pretty much does only that "read" the contents of the file.



Doug



- Original Message -
From: <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Monday, December 18, 2006 7:46 AM
Subject: cffile action=read does FILE.fileSize still work?


> Good morning,
>
> I'm sure this is a simple one for most of you, but I forget. If I
perform
a cffile action="read" etc ...
> on an image file, I should be able to get #FILE.fileSize# correct? I
was
able to do it using action="upload".
>
> Thanks
>
> D
>
> 



~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264304
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 action=read does FILE.fileSize still work?

2006-12-18 Thread Doug Brown
I may be wrong, but I believe that you can only do that via 
The read pretty much does only that "read" the contents of the file.



Doug



- Original Message -
From: <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Monday, December 18, 2006 7:46 AM
Subject: cffile action=read does FILE.fileSize still work?


> Good morning,
>
> I'm sure this is a simple one for most of you, but I forget. If I perform
a cffile action="read" etc ...
> on an image file, I should be able to get #FILE.fileSize# correct? I was
able to do it using action="upload".
>
> Thanks
>
> D
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


cffile action=read does FILE.fileSize still work?

2006-12-18 Thread coldfusion . developer
Good morning,

I'm sure this is a simple one for most of you, but I forget. If I perform a 
cffile action="read" etc ...
on an image file, I should be able to get #FILE.fileSize# correct? I was able 
to do it using action="upload".

Thanks

D

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


RE: CFFILE issues

2006-12-15 Thread Andy Matthews
I'm not using the new version yet.



-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Friday, December 15, 2006 8:56 AM
To: CF-Talk
Subject: CFFILE issues


A user of image.cfc reported a problem with the writeImage() function
since I implemented saving the image to a temp file and then moving it.

He wrote in my blog:

 > *  If I use the resize() method and pass in both the source and
 >   destination file paths CF throws an error when moving the temp
 >   file. The tmp file is created, is owned by the same user as the
 >   CF user and is readable. CFFILE says the source attribute is
 >   invalid.

Later in the comments, he mentions that move doesn't work, but it works
fine if he uses two separate cffile operations to copy and then delete,
instead of moving.

Has anyone come across anything like that before?

Rick



~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


CFFILE issues

2006-12-15 Thread Rick Root
A user of image.cfc reported a problem with the writeImage() function 
since I implemented saving the image to a temp file and then moving it.

He wrote in my blog:

 > *  If I use the resize() method and pass in both the source and
 >   destination file paths CF throws an error when moving the temp
 >   file. The tmp file is created, is owned by the same user as the
 >   CF user and is readable. CFFILE says the source attribute is
 >   invalid.

Later in the comments, he mentions that move doesn't work, but it works 
fine if he uses two separate cffile operations to copy and then delete, 
instead of moving.

Has anyone come across anything like that before?

Rick

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


RE: Looping over (CFFILE action=update and rename)

2006-12-14 Thread Dave Watts
> We've a problem with Java Applet calling CFFILE 
> action="upload" and Rename many times. The applet enables the 
> user to collect together a bunch of images and then calls a 
> CFM page for each. The CFM page uploads, then renames, and 
> creates thumbnails. This applet ran great on CF 4.5 Windows 
> 2000 Server but hangs up on CF MX7 Windows 2003 Server. It 
> seems the problem comes between the upload and the rename.. 
> I've tested using 11 images... 2 sets of (3 small followed by 
> 1 large) which is then followed by 3 small. If I comment out 
> the  rename-and-create-thumbnail part, all goes well. But as 
> soon as I add back the rename, not all images "make it". I 
> put an exclusive lock around the rename hoping that would do 
> the job.. but it doesn't. Can't really put the lock around 
> the upload and rename combined .. would be tricky to estimate 
> the appropriate time. Anyone have any suggestions ? Had 
> similar experience ?

I think you'd be better off handling the renaming of files after the
uploading, perhaps in a separate process. You might even handle this using
something other than CF, such as a Windows Script (since you're on Windows,
after all).

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Looping over (CFFILE action=update and rename)

2006-12-14 Thread P . Merritt
We've a problem with Java Applet calling CFFILE action="upload" and Rename many 
times. The applet enables the user to collect together a bunch of images and 
then calls a CFM page for each. The CFM page uploads, then renames, and creates 
thumbnails. This applet ran great on CF 4.5 Windows 2000 Server but hangs up on 
CF MX7 Windows 2003 Server. It seems the problem comes between the upload and 
the rename.. I've tested using 11 images... 2 sets of (3 small followed by 1 
large) which is then followed by 3 small. If I comment out the  
rename-and-create-thumbnail part, all goes well. But as soon as I add back the 
rename, not all images "make it". I put an exclusive lock around the rename 
hoping that would do the job.. but it doesn't. Can't really put the lock around 
the upload and rename combined .. would be tricky to estimate the appropriate 
time. Anyone have any suggestions ? Had similar experience ?

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Josh Nathanson
My bad, you need to throw a  in there around your  tags, or 
use  instead of .   Then you'll be all set.

-- Josh

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Monday, December 11, 2006 12:33 PM
Subject: Re: CFFILE: Create/Write dynamically xml file


> Thanks guys ... almst there ...
>
> I did ...
>
> 
> 
>  lgPath="/gallery/babyimages1/large/">
> 
> 
> 
> 
> 
> 
>
>  "#gallery#">
>
> and the file output was ...
>
>
> 
> 
>  lgPath="/gallery/babyimages1/large/" title="Babies of the week">
>
> 
>
> 
>
> 
> 
>
> THE #bwk_image# VARIABLE ISN'T PARSING.  HOW COME?
>
> THANKS
> d
>
>
>> > action = "write"
>> file = "#BWK_XML_PATH#images.xml"
>> output = "
>> 
>> 
>> > lgPath="/gallery/babyimages1/large/">
>> 
>> 
>> 
>> 
>> 
>> ">
>>
>>
>> Your main problem is all the quotes, the cffile tag can't figure out
>> where the output parameter starts and stops.  You either need to
>> escape all those quotes, mix them so that you use single quotes inside
>> the output parameter and double around it or vice a versa, or my
>> preference, create the variable before the cffile with > >
>>
>> 
>> 
>> 
>> > lgPath="/gallery/babyimages1/large/">
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> > action = "write"
>> file = "#BWK_XML_PATH#images.xml"
>> output = "#xmlToOutput#">
>>
>>
>> --
>> Ian Skinner
>> Web Programmer
>> BloodSource
>> www.BloodSource.org
>> Sacramento, CA
>>
>> -
>> | 1 |   |
>> -  Binary Soduko
>> |   |   |
>> -
>
>>
>> "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.
>>
>>
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263644
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: Create/Write dynamically xml file

2006-12-11 Thread Dave Watts
>   
>   
>   
> ...
> 
> THE #bwk_image# VARIABLE ISN'T PARSING.  HOW COME?

You don't have a CFOUTPUT tag around it. CFLOOP doesn't provide CFOUTPUT
functionality, it only, well, loops:





In fact, if that's all the code you have, you can just dispense with the
CFLOOP entirely, and just use CFOUTPUT with the QUERY attribute instead.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263641
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: Create/Write dynamically xml file

2006-12-11 Thread Ian Skinner
THE #bwk_image# VARIABLE ISN'T PARSING.  HOW COME?

THANKS

Yeah need them  thingies...














Yeah know, I do not know why the  and  tags don't 
parse variables like the  tag does, but they don't.

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

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"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. 




~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263638
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: Create/Write dynamically xml file

2006-12-11 Thread Jerry Johnson
Just a guess, but you need a cfoutput around it?

On 12/11/06, coldfusion. developer @ att. net coldfusion. developer @ att.
net <[EMAIL PROTECTED]> wrote:
>
> Thanks guys ... almst there ...
>
> I did ...
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>  "#gallery#">
>
> and the file output was ...
>
>
> 
> 
>  lgPath="/gallery/babyimages1/large/" title="Babies of the week">
>
> 
>
> 
>
> 
> 
>
> THE #bwk_image# VARIABLE ISN'T PARSING.  HOW COME?
>


~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread coldfusion . developer
Thanks guys ... almst there ...

I did ...













and the file output was ...













THE #bwk_image# VARIABLE ISN'T PARSING.  HOW COME?

THANKS
d


>  action = "write" 
> file = "#BWK_XML_PATH#images.xml"  
> output = "
> 
> 
>  lgPath="/gallery/babyimages1/large/">
> 
> 
> 
> 
> 
> ">
> 
> 
> Your main problem is all the quotes, the cffile tag can't figure out 
> where the output parameter starts and stops.  You either need to 
> escape all those quotes, mix them so that you use single quotes inside 
> the output parameter and double around it or vice a versa, or my 
> preference, create the variable before the cffile with  >
> 
> 
> 
> 
>  lgPath="/gallery/babyimages1/large/">
> 
> 
> 
> 
> 
> 
> 
>  action = "write" 
> file = "#BWK_XML_PATH#images.xml"  
> output = "#xmlToOutput#">
> 
> 
> --
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
> 
> -
> | 1 |   |
> -  Binary Soduko
> |   |   |
> -
 
> 
> "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. 
> 
> 

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread Jerry Johnson
You need to escape the doublequotes (since you have them in doublequotes.)

Double 'em up!

output = "


On 12/11/06, coldfusion. developer @ att. net coldfusion. developer @ att.
net <[EMAIL PROTECTED]> wrote:
>
> Still get an error ...
>
> The following information is meant for the website developer for debugging
> purposes.
> Error Occurred While Processing Request
> Invalid token '1' found on line 52 at column 26.
> The CFML compiler was processing:
> a cffile tag beginning on line 49, column 2.
> a cffile tag beginning on line 49, column 2.
> The error occurred in
> D:\Inetpub\wwwroot\site\Admin_Tools\homepage\rb_approved.cfm: line 52
> 50 : action = "write"
> 51 : file = "#BWK_XML_PATH#images.xml"
> 52 : output = "
> 53 : 
> 54 :  lgPath="/gallery/babyimages1/large/">
>
>
>
>
> >In your output statement, you have the  >This will add a blank line to the first line of the xml.
> >IE will be fine with this, but Firefox will break (iirc).
> >Tuck the  >
> >Maybe.
> >
> >Jerry
> >
> >On 12/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> >wrote:
> >>
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263622
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: Create/Write dynamically xml file

2006-12-11 Thread Ian Skinner








">


Your main problem is all the quotes, the cffile tag can't figure out where the 
output parameter starts and stops.  You either need to escape all those quotes, 
mix them so that you use single quotes inside the output parameter and double 
around it or vice a versa, or my preference, create the variable before the 
cffile with 















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

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"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. 




~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263621
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: Create/Write dynamically xml file

2006-12-11 Thread Josh Nathanson
You might be better served doing something like (this is pseudocode) -





---







Just might be easier to troubleshoot whatever issues you're having that way.

-- Josh



- Original Message - 
From: <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Monday, December 11, 2006 12:38 PM
Subject: CFFILE: Create/Write dynamically xml file


> All,
>
> I need to create/write an xml file using cffile and I'm getting errors due 
> to the xml dtd. (below)
> I've never used cf's xml tage before.  Any direction would be great.
>
> What' I've got so far.
>
> 
> select *
> from dbo.tbl_babies_of_week_homepage
> where bwk_active = 0 AND bwk_on_homepage = 0 and BWK_EMAIL_CONFIRMED = 1 
> AND bwk_email_approved = 1 AND bwk_email_reply = 1
> 
>
>  action = "write"
> file = "#BWK_XML_PATH#images.xml"
> output = "
> 
> 
>  lgPath="/gallery/babyimages1/large/">
> 
> 
> 
> 
> 
> ">
>
> D
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: CFFILE: Create/Write dynamically xml file

2006-12-11 Thread coldfusion . developer
Still get an error ...

The following information is meant for the website developer for debugging 
purposes.  
Error Occurred While Processing Request  
Invalid token '1' found on line 52 at column 26.  
The CFML compiler was processing:
a cffile tag beginning on line 49, column 2.
a cffile tag beginning on line 49, column 2.
The error occurred in 
D:\Inetpub\wwwroot\site\Admin_Tools\homepage\rb_approved.cfm: line 52
50 : action = "write" 
51 : file = "#BWK_XML_PATH#images.xml"  
52 : output = "
53 : 
54 : 
 
 


>In your output statement, you have the This will add a blank line to the first line of the xml.
>IE will be fine with this, but Firefox will break (iirc).
>Tuck the 
>Maybe.
>
>Jerry
>
>On 12/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>wrote:
>>

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263617
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: Create/Write dynamically xml file

2006-12-11 Thread Jerry Johnson
In your output statement, you have the 
wrote:
>
> All,
>
> I need to create/write an xml file using cffile and I'm getting errors due
> to the xml dtd. (below)
> I've never used cf's xml tage before.  Any direction would be great.
>
> What' I've got so far.
>
> 
> select *
> from dbo.tbl_babies_of_week_homepage
> where bwk_active = 0 AND bwk_on_homepage = 0 and BWK_EMAIL_CONFIRMED = 1
> AND bwk_email_approved = 1 AND bwk_email_reply = 1
> 
>
>  action = "write"
> file = "#BWK_XML_PATH#images.xml"
> output = "
> 
> 
>  lgPath="/gallery/babyimages1/large/">
> 
> 
> 
> 
> 
> ">
>
> D
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


CFFILE: Create/Write dynamically xml file

2006-12-11 Thread coldfusion . developer
All,

I need to create/write an xml file using cffile and I'm getting errors due to 
the xml dtd. (below)
I've never used cf's xml tage before.  Any direction would be great.

What' I've got so far.

 
 select *
 from dbo.tbl_babies_of_week_homepage
 where bwk_active = 0 AND bwk_on_homepage = 0 and BWK_EMAIL_CONFIRMED = 1 AND 
bwk_email_approved = 1 AND bwk_email_reply = 1
 









"> 

D

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: Which type of lock is best for cffile rename

2006-12-10 Thread James Holmes
Paul's hash method works well for that too (and can potentially make
the lock name a little more manageable, depending on the length of the
file path). The double lock or something similar would be necessary,
since we are dealing with two files that need to be locked (the old
name and the new).

I haven't put time into working out if it's theoretically possible to
get a deadlock with the double lock technique in this situation
though.

On 12/11/06, Massimo Foti <[EMAIL PROTECTED]> wrote:
> >> As long as anyone else using those files in their code uses exactly
> >> the same name, it will work.
> >>
> > Thanks James.
> > And I suppose, when running on a shared server, it doesnt hurt to reduce
> > the likelyhood of a conflict by using a more unique name like
> > FileChange3076 instead of FileChange
>
> An easy way to ensure a unique name for such a kind of locks is to use the
> file's full path name as lock's name. That's the way I implemented it on
> this CFC:
> http://www.olimpo.ch/tmt/cfc/tmt_file_io/
>
> 
> Massimo Foti, web-programmer for hire
> Tools for ColdFusion and Dreamweaver developers:
> http://www.massimocorner.com
> 
>
>
>
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Re: Which type of lock is best for cffile rename

2006-12-10 Thread Massimo Foti
>> As long as anyone else using those files in their code uses exactly
>> the same name, it will work.
>>
> Thanks James.
> And I suppose, when running on a shared server, it doesnt hurt to reduce
> the likelyhood of a conflict by using a more unique name like
> FileChange3076 instead of FileChange

An easy way to ensure a unique name for such a kind of locks is to use the 
file's full path name as lock's name. That's the way I implemented it on 
this CFC:
http://www.olimpo.ch/tmt/cfc/tmt_file_io/


Massimo Foti, web-programmer for hire
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com





~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


<    1   2   3   4   5   6   7   8   9   10   >