I am trying to upload a file, using cffile, within a component. As part of
the upload, I am storing some of the file parameters, such as file size, in
a database. I am doing this as part of the cffile parameter, i.e.
cffile.filesize.
When I do this using <cfinvoke>, as in:
<cfinvoke returnvariable="result"
component="components.GlobalWeb.GW_MAR" method="addDocument"
form = #form# >
</cfinvoke>
everything works fine and I can insert cffile.filesize into the database
table.
However, when I instantiate the component as an object using cfscript, as
in:
session.thisApp =
createObject("component","components.GlobalWeb.GW_MAR");
and call the same method as in :
result = session.thisApp.addDocument(FORM);
I get an error message that filesize is not defined in cffile
Can anybody tell me why this is happening? I also have the same problem
with using a tag such as <cfdump> - it works fine if I use <cfinvoke> as a
'one time ' instance but if I call the method from an existing 'object' -
nothing happens - no errors - just nothing.
Walt
Walt Sparrow-Hood
Director, E-Commerce
GenTek, Inc.
V - 973-515-1835
M - 973-723-7910
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).