File Details

2007-05-04 Thread Robert Rawlins - Think Blue
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



~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

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


RE: File Details

2007-05-04 Thread Coldfusion
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:276992
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: File Details

2007-05-04 Thread Robert Rawlins - Think Blue
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







~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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


RE: File Details

2007-05-04 Thread Adkins, Randy
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
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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


Re: File Details

2007-05-04 Thread Dean Lawrence
No reason to regex anything. There is already a variable returned from
cffile for this, cffile.serverFileExt

On 5/4/07, Robert Rawlins - Think Blue
[EMAIL PROTECTED] wrote:
 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:276998
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: File Details

2007-05-04 Thread Rick Root
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_Documentationfile=0253.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


RE: File Details

2007-05-04 Thread Adkins, Randy
Simple... I forgot that variable existed.. Too early in the morning to
think 
Must have CAFFINNEEE


-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 04, 2007 8:48 AM
To: CF-Talk
Subject: Re: File Details

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

 ;)

http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/ht
ml/wwhelp.htm?context=ColdFusion_Documentationfile=0253.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
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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


RE: File Details

2007-05-04 Thread Robert Rawlins - Think Blue
Thanks for this guys, That'll work a charm,

Thanks anyway Randy, 10 Points for effort :-D

Rob

-Original Message-
From: Adkins, Randy [mailto:[EMAIL PROTECTED] 
Sent: 04 May 2007 13:51
To: CF-Talk
Subject: RE: File Details

Simple... I forgot that variable existed.. Too early in the morning to
think 
Must have CAFFINNEEE


-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 04, 2007 8:48 AM
To: CF-Talk
Subject: Re: File Details

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

 ;)

http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/ht
ml/wwhelp.htm?context=ColdFusion_Documentationfile=0253.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









 





~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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


UNIX odbc ini file details

2000-10-09 Thread j p

Can anyone give me an example of the unix odbc ini file - a copy of a real 
on would be preferable with an explanation of what the representation is...


thanks J
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: UNIX odbc ini file details

2000-10-09 Thread Dave Watts

 Can anyone give me an example of the unix odbc ini file - a 
 copy of a real on would be preferable with an explanation of 
 what the representation is...

On Solaris, CF uses an odbc.ini file to mimic the ODBC.INI registry key in
NT. It lists ODBC datasources and their settings. Here's an excerpt from
one:

[ODBC Data Sources]
cfsnippets=MERANT dBase/FoxPro Driver
cfx=MERANT dBase/FoxPro Driver
GlobalCorpDB=MERANT dBase/FoxPro Driver
otest1=MERANT Oracle 8 Driver

[ODBC]
Trace=0
TraceFile=/tmp/odbctrace.out
TraceDll=/opt/coldfusion/lib/odbctrac.so
InstallDir=/opt/coldfusion/odbc

[cfsnippets]
Description=ColdFusion CFML snippets
Database=/opt/coldfusion/database/cfsnippets
Driver=/opt/coldfusion/lib/CFdbf15.so
CreateType=FoxPro30
ExtensionCase=UPPER

[cfx]
Description=ColdFusion CFML examples
Database=/opt/coldfusion/database/cfexamples
Driver=/opt/coldfusion/lib/CFdbf15.so
CreateType=FoxPro30
ExtensionCase=UPPER

[GlobalCorpDB]
Description=ColdFusion CFML examples
Database=/opt/coldfusion/database/cfexamples/GlobalCorpDB
Driver=/opt/coldfusion/lib/CFdbf15.so
CreateType=FoxPro30
ExtensionCase=UPPER

[otest1]
Description=Oracle Test w/ODBC
ServerName=ORACLE
Driver=/opt/coldfusion/lib/CFor815.so

Enjoy!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.