Alt-CPAN-Uploader-tinyua
view release on metacpan or search on metacpan
lib/CPAN/Uploader.pm view on Meta::CPAN
# Make the request to the PAUSE web server
$self->log("POSTing upload for $file to $uri");
my $response = $agent->post_multipart($uri, {
HIDDENNAME => $self->{user},
CAN_MULTIPART => 1,
pause99_add_uri_upload => File::Basename::basename($file),
SUBMIT_pause99_add_uri_httpupload => " Upload this file from my disk ",
pause99_add_uri_uri => "",
pause99_add_uri_httpupload => {
filename => $file,
content => do {open my $fh, '<', $file; binmode $fh; local $/ = <$fh>},
},
($self->{subdir} ? (pause99_add_uri_subdirtext => $self->{subdir}) : ()),
});
# So, how'd we do?
if (not defined $response) {
die "Request completely failed - we got undef back: $!";
}
if (!$response->success) {
( run in 0.298 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )