You can run a perl ftp script (see Net::ftp) or you can zip and 
upload via a web page. The ftp could be anonymous or password 
protected. Ther latter (http file upload) has no security implication. 
Both are easy to accomplish. 
With the ftp, you can do 'mput' but with http, to transfer a number 
of files, I would zip (or gzip) them.

For the file upload approach see CGI.pm
You would need an <INPUT type='file' > and the form should be 
defined as <FORM METHOD="POST"  ENCTYPE="multipart/form-
data" NAME="upload">

I have used CGI.pm to accomplish this...

On 19 May 00, at 11:02, CBC wrote:

From:                   Margaret Mayer (CBC) <[EMAIL PROTECTED]>
Subject:                FTP within cgi
To:                     "Perl-Win32-Users Mailing List" 
<[EMAIL PROTECTED]>
Date sent:              Fri, 19 May 2000 11:02:36 -0500 (CDT)
Send reply to:          Margaret Mayer (CBC) <[EMAIL PROTECTED]>

> 
> Is there a module or way to ftp the contents of a directory from a client 
> side to the server side?  I would have a webpage that would ask for a
> local directory name and try transfering all the files from that directory 
> to the web server.  Typically there would be a couple of hundred small
> ASCII files in that directory.  
> 
> This seems to be a bad thing to be able to do.  Is there a module or way
> to tell the client site that I am trustworthy?
> 
> 
> Margaret Mayer
> 
> Computational Biology Centers,  Academic Computing and Bioinformatics
> 
> ---
> You are currently subscribed to perl-win32-users as: [EMAIL PROTECTED]
> To unsubscribe, forward this message to
>          [EMAIL PROTECTED]
> For non-automated Mailing List support, send email to  
>          [EMAIL PROTECTED]
> 
> 



---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to