On Tue, 20 Jul 2004 15:04:48 -0400, Peter J. Farrell
<[EMAIL PROTECTED]> wrote:
> >  This technically breaks encapsulation.  I couldn't get it to work any
> > other way, though. ( passing in the full form scope would work sort of
> > I guess )

Confusing thread... If I read it right, the solution is to pass the
*name* of the field, e.g., "form.myFileField" as an argument (say
formField) and then in CFFILE use the *value* of the argument:

<cffile fielfield="#arguments.formField#" ... />

So you call the CFC like this:

<cfset result = myObj.uploadFile( "form.myFileField" ) />

No need to pass the entire form scope in or reference form scope
directly inside the CFC (although the CFFILE tag implicitly references
the form scope directly I suppose...).
-- 
Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to