Edit the
Contenta\encaps\S1000D\S1000D_XPP_Publish.pl script in this section:
eval {
foreach my $grname (@grlist) {
my $grpath = "$tempDir/$grname";
#check that the graphic file exists
if (-f $grpath) {
#Copy the graphic from the Contenta Web server to the XPP job-level graphics directory.
&logMsg("Copying $grname to XPP graphics library: $xppImageLibrary");
my $grent = build MIME::Entity
Encoding => "base64",
Path => $grpath,
Filename => $grname,
Disposition => "attachment";
# Note the array reference rather than the MIME entity.
$soap->parts([$grent])->putFileAsAttachment($job,"$xppImageLibrary/$grname");
} else {
&logMsg("[WARNING] $grname does not exist. Check graphic file and name in $buildlistfilename at $tempDir.");
}
}
};
Insert
Type => "application/octet-stream" in the "my $grent..." (bold section above) like this:
my $grent = build MIME::Entity
Type => "application/octet-stream",
Encoding => "base64",
Path => $grpath,
Filename => $grname,
Disposition => "attachment";
This change will be added to future releases of the S1000D_XPP_Publish.pl script.