Advertisement
4_2005-2006 Complete Applications #163920

Professional File Selector

i needed a component to select files from a given folder and store the paths to a database. thats why i have written this nice component to easily select files (one or more) from a given folder and its subfolders. it draws the complete tree clearly arranged. can also be used as a file browser or file explorer. FULLY OO-ORIENTED AND EASY TO USE!

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Here is a sample page which uses this class. you just need to change the .sourcePath property to your folder you want to show and thats it.
<!--#include file="../fileSelector.asp"-->
<%
set fs = new fileSelector
with fs
	.sourcePath = "/yourfolder/"
	if request.form.count > 0 then .selected = .selected
	.height = 300
end with
content()
set fs = nothing
sub content() %>
	<form action="index.asp" method="post" name="frm">
		<div style="padding:30;"><% fs.draw() %></div>
		<div><input type="Submit" name="submit"></div>
	</form>
	
<% end sub %>
Original Comments (3)
Recovered from Wayback Machine