Sorry for the quick reply. I applied Updater 3, reran the code, and this time, when I included the <cfdump var="#cffile#"> I got: struct [empty] However, I still get the error message. What's weird is, I do an insert to the database, and it works. In another page, I do a select and a CFFILE write so I can check the integrity of the uploaded file and works as well.
However, in either case the CFFILE struct is empty. -----Original Message----- From: Todd [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 10:21 AM To: CF-Linux Subject: Re: CFFILE Scope What happens when you <cfdump var="#cffile#"> ..? At 10:17 AM 4/3/2003 -0500, you wrote: >Hello, >I am uploading a file via a form. Intead of using CFFILE Upload, I am doing >a CFFILE ReadBinary, and then perform an insert to my Database server. All >is good. >However, Now I want to tweak the program so it checks for filesize and name, >before I do an insert. > >Before I insert any conditionals, I am just doing a cfoutput. However I get >an error: > > Element CLIENTFILE is undefined in CFFILE > >Thank you for any help, > >Percy > >Please see below for code: > ><!--- read variable passed by form.... ----> ><cffile > action = "readBinary" > file = "#form.f_filename#" > variable = "var_name"> > > ><cfoutput> >#CFFile.ClientFILE# >#CFFile.FileSize# ></cfoutput> >Proprietary and Confidential: The information transmitted is intended only >for the person or entity to which it is addressed and may contain >confidential and/or privileged material. Any review, retransmission, >dissemination or other use of, or taking of any action in reliance upon, >this information by persons or entities other than the intended recipient is >prohibited. If you received this in error, please contact the sender and >delete the material from any computer. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=14 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=14 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14
