Oh absolutely... cffile... I didn't see anything about getting it while
uploading though so I assumed that the files already existed.

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 07, 2007 5:04 PM
To: CF-Talk
Subject: Re: How do I get the characters after the last period in a string?

am i missing something here?  if you're trying to get the file name
(sans extension) and extension (sas filename) -of an uploaded file-...
why not the cffile variables that i mentioned earlier (or has my prior
message not made it yet?)

On Nov 7, 2007 11:53 AM, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> Listlast(filename, '.')
> to get the extenstion
>
> And...
>
> ListDeleteAt(filename, listlen(filename, '.'), '.')
> to get everything except the extension (including the dot)
>
> It doesn't matter with either method whether there is 1 dot or 40. They
will
> work as long as there is at least 1 dot present.
> However, the first will return the entire string if there is no dot and
the
> second will return an empty string if there is no dot.
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
>
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292922
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to