Thanks.. that is what I had thought.. while waiting to see if anyone answered I had done a replace.... but I am doing a few - and the code is just getting longer for a very simple task.. <cfset FileLinkName = Replace(File, ".pdf", "", "ALL")> <cfset FileLinkName2 = Replace(FileLinkName, "_", " ", "ALL")> <cfset FileLinkNameFinalDisplay = RemoveChars(FileLinkName2, 1, 48)> <cfset FileLinkNameFinal = RemoveChars(FileLinkName, 1, 47)>
I am sure there is a way to condense that - but I was just hoping to have that fixed in a different spot. It also is confusing since there is a delete form where people enter file name - so I have to add a messag e- remember replace spaces with _ - was trying to make it as easy as possible for clients. Anyhow - thanks for the response! jason Gyrus wrote: ----- Original Message ----- From: "Jason Miller" <mailto:[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Hello list - I have a simple form - it's in a secure area and allows client to simply upload some PDF's. The file names though MUST allow spaces.. Since I am dynamically creating links and display from the file names. Problem is - if I upload - Test PDF.pdf - it shows up as Test_PDF.pdf - I need it to show up as Test PDF.pdf - exactly as typed. FOrm is as follows - --------------------------- What version of CF are you using? IIRC, there's a break between 4.5 and 5 - I can't remember if 5+ keeps spaces in filenames that are uploaded or vice versa, though. Anyway, if your CF is replacing the spaces in the filenames, you just have to manually replace them back yourself: <cfset newFilename = Replace(File.ClientFileName, "_", " ", "ALL")> or something along those lines. I don't think there's a setting or anything, but I could be wrong. Gyrus [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> work: http://tengai.co.uk <http://tengai.co.uk> play: http://norlonto.net <http://norlonto.net> PGP key available ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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.4