Forums

XML RPC custom event for images (1 post)

  1. kc100
    Member
    Posted 4 months ago #

    Hi,
    I am trying to send an image using xml-rpc. I need to set this image as a featured image of a post.
    When I use the traditional NewMediaObject it returns only the url, I would like to write a custom method.
    Some one suggested to use wp_handle_upload(). This accepts $_FILE object as an input. how do I achieve put in a bit array instead of a $_FILE?

    $bit_array = get_file_bit_array();
    wp_handle_upload( $bit_array, .., .. );

    but this does not work.
    Thanks in advance

Reply

You must log in to post.

About this Topic