OK I know what I am getting - I am getting more than the filename
I am getting: c:wwwrootdrzachariauploadssanta2.jpg - where Santa2.jpg is the filename I should be able to perform a trim on the first 26 characters thereby just have remaining the filename. I'm just not sure what the correct format of the trim would be I think it might be something like #RTrim(26,filename)# Just cant find anything that shows the correct syntax Thanks in advance P -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, 28 February 2007 9:17 PM To: CF-Talk Subject: RE: Saving the name of an attached file to the DB After your cffile, do the follwoing to see what's available to use: <cfdump var="#CFFILE#"> Adrian -----Original Message----- From: Pete [mailto:[EMAIL PROTECTED] Sent: 28 February 2007 10:02 To: CF-Talk Subject: Saving the name of an attached file to the DB Hi there I a piece of code in my program : <cffile action = "upload" filefield = "attachment_1" destination = "c:\wwwroot\drzacharia\uploads\" nameconflict = "makeunique"> I want to save the name of the file that is uploaded into the database. Can I just use attachment_1 as the name ? Thanks in advance. P ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270929 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

