<!---This variable specifies relative path to the folder, where the gallery with uploaded files is located.
Do not forget about the slash in the end of the folder name.--->
<cfset galleryPath="../Gallery/" />
		
<cfset absGalleryPath="#ExpandPath(galleryPath)#" />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Aurigma Image Uploader - Uploaded Files</title>
	<link href="style.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<p>
		<a href="index.cfm">Upload New Files</a>
	</p>
    <table cellspacing="0" rules="all" border="1" style="border-collapse:collapse;">
        <tr style="background-color:Gainsboro;font-weight:bold;">
            <td>File Name</td>
        </tr>
		<cfdirectory name="galleryDir" action="list" 
					directory="#absGalleryPath#" filter="*" />
		<cfloop query="galleryDir">
			<cfif FileExists("#absGalleryPath##Name#")>
		        <cfoutput>
		
			        <tr>
					    <td><a href="#galleryPath##Name#" target="_blank">#Name#</a></td>
					</tr>
				</cfoutput>
			</cfif>
		</cfloop>		
    </table>
</body>
</html>
