PDA

View Full Version : Uploading an entire folder


Dustfinger
08-05-2008, 01:52 AM
I apologize if this isn't the correct board to ask this on, but I was hoping I'd be able to do this with perl/CGI, so I thought it would be best to try here first.

I have an upload code using perl already, but it can only do one file at a time. The user selects the file using an html form on my webpage and submits, the perl script gets the file. I'm wondering if/how I can do the same thing, but with an entire folder on a user's computer instead of single file.

Again, sorry if this is the wrong board for this.

bazz
08-05-2008, 02:52 AM
Oh, hang on a minute, I got an answer to this recently. I'll look it up and come back.

bazz

bazz
08-05-2008, 02:55 AM
Hi again,

Here's the advice I got and I haven't had time yet to try to build something myself :(


File uploads in a cgi setting are meant to be done by selecting individual files, not a directory tree. Outside of a cgi setting, it could be a fairly straight forward task with the use of Net::FTP::Recursive or File::Rsync.


bazz

Dustfinger
08-05-2008, 03:07 AM
Sweet, thanks bazz, I'll look into those