WordPress::Base::MediaObject - create structs to upload media to wordpress
use WordPress::Base::MediaObject 'all'; my $struct = abs_path_to_media_object_data('/home/my/picture.jpg');
This is for dealing with files, slurping, cleaning up text, whatever. Nothing is exported by default. This is for use with WordPress::XMLRPC
Arg is abs path, turns into data structure expected as arg to upload with WordPress::XMLRPC methods. You would normally use a binary file for this.
Argument is a path. Returns filename part.
Argument is abs path, returns file bits in MIME::Base64
Argument is abs path, returns mime type
File::Type MIME::Base64
WordPress::XMLRPC
Leo Charre leocharre at cpan dot org
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".
This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the "GNU General Public License" for more details.
To install WordPress::Base::MediaObject, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WordPress::Base::MediaObject
CPAN shell
perl -MCPAN -e shell install WordPress::Base::MediaObject
For more information on module installation, please visit the detailed CPAN module installation guide.