> -----Original Message-----
> From: Rebecca Wells [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 09, 2005 4:52 PM
> To: CF-Talk
> Subject: Re: How to Browse and Choose Directory...
> 
> 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.

This still won't work.  There is no way for CF to access the filesystem, no
matter what you do.  Only the uploaded file will be available on the server.
CF just has access to the file after it is uploaded, not before -- ever.

Andy



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198075
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

Reply via email to