Subject: | uploads filename instead of file content |
$Nexus::Uploader::VERSION = '1.0.0';
My tests have shown that the uploader uploads the filename of an archive but not its content to Nexus. Replacing
$Nexus->PUT( $artefact_URL, $archive, $headers );
with
use File::Slurp;
my $content = read_file( $archive );
$Nexus->PUT( $artefact_URL, $content, $headers );
has fixed the problem.