Yea I'm doing the hidden field thing. It's just one of those things I guess. I'm still curious as to where CF gets the file name from after doing the cffile call.
Thanks Matt On 10/5/07, Brad Wood <[EMAIL PROTECTED]> wrote: > 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." ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290393 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4