By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,481 Members | 1,211 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,481 IT Pros & Developers. It's quick & easy.

Client-Side Javascript Directory Searches

P: 1
I am new to javascript, and wondering if it is capable of implementing a browsing mechanism for the browser to upload the names of files in a client side directory to the server. The client would select a local directory through its web browser based on a page from the server and when hitting the submit button would upload a list of the files in the directory.

So, I am looking for a way where the client can:

- click a browse button on the webpage, which will cause a box to be displayed that will allow the client to select a directory they wish to share / upload,
- client side javascript will run to scan the directory for files
- the client will then provide an upload of the file names to the web server in an HTTP response to the server (as part of the submit)
- server saves the file names and locations

(Note: the file content is not uploaded - just the names)

I was wondering if there is a way to do this in javascript, as it will allow the server to browse the client's directory without having the client download another browsing client for example one created with ruby.

All input is greatly appreciated.
Nov 6 '07 #1
Share this Question
Share on Google+
1 Reply


100+
P: 428
Not with javascript, though you can stretch Microsoft's ActiveXObject to fit- with security alerts, and only if you are the computer administrator.
Nov 6 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.