> After someone uploads a file in the form field, how can I > grab the file name from the <cffile action ="upload">? > > I've been through the documentation, and I can't see how to > retrieve the file name from the file field? > > I tried displaying the #form.filefield# but it just shows me > the temp path where CF uploaded the file to!?
File.clientfile is the variable containing the original file name. File.serverfile is the variable containing the file name on the server: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_f_10. html Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298127 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

