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/#qGetNominees.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:4950
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15