|Perl Monk, Perl Meditation|
MediaWiki::API->upload() problemby spekulum (Initiate)
|on Sep 27, 2011 at 15:17 UTC||Need Help??|
spekulum has asked for the
wisdom of the Perl Monks concerning the following question:
I use upload function from MediaWiki::API Module (http://search.cpan.org/~exobuzz/MediaWiki-API-0.27/lib/MediaWiki/API.pm) in a subroutine:
$api is MediaWiki::API object, defined in main programm.
$name is full in-wiki filename like 'File:Example.jpg'.
$url is a real URL like 'http://example.com/1.jpg' to download file and send content to $api->upload() function.
$sum is a comment to uploading.
if $reupload is defined, this function can reupload exist file.
And this function with all correct variables return "HTTP::Message content must be bytes at /usr/local/share/perl/5.10.0/HTTP/Request/Common.pm line 91".
All perl modules is up to date.
How to resolve this problem?