Hi, Adam...

After uploading a file, you can reference the filename as
cffile.serverFileName

You can reference the extension as cffile.serverFileExt

hth,

Rick

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


Hello - 

I want to output a directory of files as a list of links.  The list of links
must be in a specified order.  The files have a specific name
programmatically assigned as the files are uploaded.  The files can have
either extensions of pdf, doc, docx, txt, or rtf.

So far, I have created a variable to reference the path of the file, the
specific order of the file in a list, but I do not know how to reference the
file name and extenstion:

<!---Create variable to reference file path--->
        <cfset filePath =
"http://faa.iupui.edu/awards/chancellorsProfessors/nominationUploads/#qGetNo
minees.fname#_#qGetNominees.lname#/">
<!---Need to Get file extention--->
        
<ul>
        <li><a href="#output file#">Nomination Letter</a></li>
        <li>Dean's Statement of Endorsement (if any):</li>
        <li>Candidate's Statement:</li>
        <li>Candidate's Curriculum Vita:</li>
        <li>Support/Recommendation Letter ##1:</li>
        <li>Support/Recommendation Letter ##2:</li>
        <li>Qualifications Paragraph for External Letter Writers ##1:</li>
        <li>External Support/Recommendation Letter ##1:</li>
        <li>Qualifications Paragraph for External Letter Writers ##2:</li>
        <li>External Support/Recommendation Letter ##2:</li>
        <li>Qualifications Paragraph for External Letter Writers ##3:</li>
        <li>External Support/Recommendation Letter ##3:</li>
</ul>
</cfoutput>

I'm not sure if I need to get just the file extension and hard code the file
name or get the file name with extension and reference it.

Thanks,
Adam




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:4951
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