Seems like that should work.

Give it a try and check the results...

Rick

-----Original Message-----
From: Adam Parker [mailto:[email protected]] 
Sent: Wednesday, January 27, 2010 2:00 PM
To: cf-newbie
Subject: Re: Get files name and extension from directory


Hi Rick - 

May I use cffile.serverFileExt like this:

<cfset filePath =
"http://site/awards/chancellorsProfessors/nominationUploads/#qGetNominees.fn
ame#_#qGetNominees.lname#/">

<cfset fileExt = "#filePath#nominationLetter.#cffile.serverFileExt#">

Where I know the absolute name of the file is "nominationLetter" but the
extension could be one of five possibilities?

I'm hoping the variable would provide something along the lines of:

http://site/awards/chancellorsProfessors/nominationUploads/#qGetNominees.fna
me#_#qGetNominees.lname#/#fileext#"





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4953
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to