<!---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 Demos &rarr; Robust Upload Demo &rarr; Uploaded Files</title>
	<link href="../common.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<form>	
		<h1><a href="../index.cfm">Aurigma Image Uploader Demos</a> &rarr; <a href="index.cfm">Robust Upload Demo</a> &rarr; Uploaded Files</h1>

		<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>
	</form>
</body>
</html>
