> ----- Original Message ----- > From: "Joe Eugene" <[EMAIL PROTECTED]> >> > <CFFILE ACTION="Upload" >> > FILEFIELD="#attributes.filefield#" >> > DESTINATION="#ulpath#" NAMECONFLICT="MAKEUNIQUE"> >> > <cfset upload.file = duplicate(cffile)> >> >> I think FILEFIELD does not need "#" sign in CFMX, since u >> are specifying >> (cffile).. am assuming u are on CFMX. I think CFFILE.. is >> not yet created >> because of the filefield # sign. Havent tested this. > ----------------------------
> But I assume #attributes.filefield# refers to the file > field, so the pound > signs are needed. If the form field is called 'filePath', > FILEFIELD="#filePath#" would be wrong, but if > attributes.filefield EQ > "filePath", then the above is right, no? Yes, this particular module is a custom tag which wraps around the <cffile> tag in order to encapsulate some additional file-upload functionality in this application, so filefield="#attributes.filefield#" is passing the name of the form field containing the file from the calling document. That works -- and the file _does_ upload, and it _does_ create the variable #cffile.filewasuploaded# which evaluates to true ... but at that point, even though <cfif cffile.filewasuploaded> works, no attempt to manipulate a structure named <cffile> has been successful -- they've all met with "unknown variable 'cffile' ... " Isaac Certified Advanced ColdFusion 5 Developer www.turnkey.to 954-776-0046 ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

