Tell me why exactly wouldn't you use cffile.serverFileExt?

 ;)

http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000253.htm

Rick

On 5/4/07, Adkins, Randy <[EMAIL PROTECTED]> wrote:
> I usually to a ListLast(cffile.serverfile,".")
>
> -----Original Message-----
> From: Robert Rawlins - Think Blue
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 04, 2007 6:25 AM
> To: CF-Talk
> Subject: RE: File Details
>
> Thanks for that pal,
>
> What's the best way to REGEX out that extension? I'm pretty lame when it
> comes to REGEX stuff.
>
> Thanks again for the help,
>
> Rob
>
> -----Original Message-----
> From: Coldfusion [mailto:[EMAIL PROTECTED]
> Sent: 04 May 2007 10:56
> To: CF-Talk
> Subject: RE: File Details
>
> Same way, upload the file to a temp directory, Use CFFILE.SERVERFILE to
> obtain the name then parse it to get the name and extension if you need
> it in 2 parts
>
> -----Original Message-----
> From: Robert Rawlins - Think Blue
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 04, 2007 5:28 AM
> To: CF-Talk
> Subject: File Details
>
> Hello Guys,
>
>
>
> I've got a file upload facility that can receive a few different types
> of files, from images to vcards and vcals and I want to treat them all
> slightly differently, how can I extract the file name and the file
> extension from the form field that's been submitted? I can then look at
> doing a cfif on it.
>
>
>
> Thanks,
>
>
>
> Rob
>
>
>
>
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276999
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