PDA

View Full Version : generate list of clients machine files?


vegeta
12-05-2002, 09:02 PM
Hey there

I want to make an extensive browser/fileupload script inspired on windows Explorer... A server side listing of the files and directories with the home directory specified in the script and a listing of the clients files. The server side part can be found on http://vegeta.evilkalah.be ... The idea now is to make it possible to upload or download (maybe drag and drop) files from on side to the other. I don't know how I best make the client side. So on this part any help is welcome...

(any comment on the site (vegeta.evilkalah.be) so far is welcome too)

greetz
Vegeta

Roy Sinclair
12-05-2002, 10:03 PM
Sorry but it ain't gonna happen. The ability for a script provided by your web site to list files on a client system would constitute a violation of the client's privacy (since the ability to create a list also would provide the ability to silently send said list to the host and would thus allow spying on the client).

mordred
12-06-2002, 01:26 PM
You might be able to accomplish this task with the help of the FileSystem object. It's a JavaScript interface to an ActiveX object that provides you with functions for file I/O and scanning drives, directories etc. Might be worth a shot because you stated that you're going to develop your app for IE. Only remember that the security settings must be quite low for this to work in a web environment, so don't expect that to work for every IE user out-of-the-box.

For more info on the FileSystemObject, look that up on msdn.

brothercake
12-06-2002, 04:23 PM
Originally posted by mordred
don't expect that to work for every IE user out-of-the-box.

I'd say, don't expect it to work for *any* web user. But for an intranet environment it'd be fine.

Spookster
12-06-2002, 05:21 PM
And don't crosspost:

http://codingforums.com/showthread.php?s=&threadid=11014

whammy
12-07-2002, 12:39 AM
http://www.w3schools.com/asp

Look up "FileSystemObject" on the left hand navbar. :)

Note: You will have to use ASP or ActiveX to do this (but those are also Microsoft technologies!).