PerlRob has asked for the wisdom of the Perl Monks concerning the following question:
open(INFILE, "<", $fileToRead); binmode INFILE; my $ftp = Net::FTP->new("ftp.example.com"); $ftp->login('username', 'password'); $ftp->binary(); while (read INFILE, my $data, 2000000) { open(OUTFILE, ">", $fileToWrite); binmode OUTFILE; print OUTFILE $data; close(OUTFILE); $ftp->append($fileToWrite); # Here's where I will print the progress... } $ftp->quit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Track file upload progress
by Tanktalus (Canon) on Jun 20, 2008 at 23:37 UTC | |
|
Re: Track file upload progress
by ikegami (Patriarch) on Jun 21, 2008 at 00:30 UTC | |
|
Re: Track file upload progress
by pc88mxer (Vicar) on Jun 20, 2008 at 23:44 UTC |