Trading Software > Help Desk > Knowledgebase

Search help:

XML-RPC metaWeblog.newMediaObject


2019-10-18: Created


Describes the arguments and return value of XMLRPC calls using XmlRpcMethod("metaWeblog.newMediaObject") 




Function: Uploads a media file to your blog, based on your media settings.


  • ID of the blog you’re uploading to (usually 0 for a single site)
  • WordPress username
  • WordPress password
  • Upload data (array)
    • Upload name
    • File type: file extension -> Link
    • File bit data (the file itself)


Returns: An array with elements file (file name), url (file url), and type.

Was this article helpful? yes / no
Related articles XML-RPC metaWeblog.getRecentPost
XML-RPC metaWeblog.newPost
XML-RPC metaWeblog.getCategories
XML-RPC metaWeblog.getPost
XML-RPC metaWeblog.editPost
Article details
Article ID: 248
Category: Wordpress
Rating (Votes): Article rated 2.9/5.0 (15)

« Go back

Powered by Help Desk Software HESK, in partnership with SysAid Technologies