I am at a dead end. I was trying to use the file upload field to have
user select a file then use javascript to get the directory name of that
file. This directory name was passed to a CGI script which I thought I
could use to traverse the directory listing recursively. Then the CGI
script would upload all the files in this directory. However, now I am
stuck at finding a way to recursively read a directory on my local PC.
There isn't any way for the Unix server to read the directory on your
local PC solely via a web browser, at least unless you totally disable
all security in the browser or something. Imagine if it was possible to
do things like that, we'd all be in serious trouble! You can send the
string containing the directory to the Unix server, but unless the Unix
server has some file system type of connection to your local PC (that is
the "SMB? NFS? FTP? SSH?" stuff which JK mentioned), it's not possible
to look at the PC's file system with either a CGI script or JavaScript.
That is just the nature of web servers and browsers.