The form post must complete before any ColdFusion runs. By that time, it is too late because the file is already uploaded.
You need something on the client. Perhaps some flash could determine that... ~Brad -----Original Message----- From: Matt Williams [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 12:00 PM To: CF-Talk Subject: Name of uploaded file before cffile 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 neoXXXXX.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." ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:290375 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

