I think renaming all the images with a uuid would be an option.
Once the file is uploaded, at least in this situation, the user
wouldn't have to refer to the filename again.

And, yes, I created these crappy filenames just to give you a
chance to sharpen your wit, Wilbur...it seems you are losing
your edge a bit...so...you're welcome!  ;o)

Rick

> -----Original Message-----
> From: Will Tomlinson [mailto:[email protected]]
> Sent: Saturday, March 14, 2009 2:36 AM
> To: cf-talk
> Subject: Re: How can I make this "Replace()" work?
> 
> 
> >I have an uploaded file named:  CIY '06 001.jpg  (That's
> >CIY<space>'06<space>001.jpg)
> >
> >I want to change the name of that file to:  CIY06001.jpg
> 
> 
> Dunno if this is an option rick, but I usually use bobby h's trick of
> creating my own filename for the images. Then you don't need to worry
> about crappily-named images from users.
> 
> <cfset somefilename = replace(createuuid(), "-", "", "all")>
> 
> Then cffile save the image with your newly-created filename.
> 
> Then again, I wouldn't doubt if YOU were the one naming the images. :)
> 
> Will
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320526
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to