Here's a little javascript majick to do the trick. Create a little javascript
like this:
<InvalidTag type="text/javascript">
function getFile(f) {
f.directory.value = f.uploadFile.value;
}
</script>
Then in the body of the page, your form is like this:
<form action="" method="post" enctype="multipart/form-data" name="uploadForm">
Browse to your file directory (pick a file): <input type="file"
name="uploadFile" size="35" onblur="getFile(this.form);"><br>
<input type="hidden" name="directory">
<input type="submit" value="submit">
</form>
When the form is submitted, it will pass the full path of the file that was
selected. Then you can use the CF function Get DirectoryFromPath(path) to get
just the directory path you want to use.
HTH.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198071
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54