in reply to Struggles with Put in Net::FTP
Maybe the problem is in $new_file_name?$ftp->put ( $input_file, $new_file_name ) or die "did not upload $inpu +t_file to $new_file_name: " . $ftp->message;
Test it against your own FTP server running with verbose logging and see what the FTP server logs report?use File::Basename wq(basename); my $new_file_name = basename($input_file); die "no such file: $input_file" unless -s $input_file; $ftp->put ( $input_file, $new_file_name ) or die "did not upload $inpu +t_file to $new_file_name: " . $ftp->message;
Regards,
Jeff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Struggles with Put in Net::FTP
by Anonymous Monk on May 25, 2004 at 18:26 UTC | |
|
Re: Re: Struggles with Put in Net::FTP
by mchiles (Initiate) on May 25, 2004 at 22:25 UTC | |
by castaway (Parson) on May 26, 2004 at 05:33 UTC | |
by mchiles (Initiate) on May 26, 2004 at 15:19 UTC | |
by nimdokk (Vicar) on May 26, 2004 at 16:40 UTC | |
by castaway (Parson) on May 26, 2004 at 19:46 UTC | |
by mchiles (Initiate) on May 27, 2004 at 03:56 UTC |