WordPress.org

Ready to get started?Download WordPress

Forums

media_sideload_image dies (1 post)

  1. Andy McCoy
    Member
    Posted 3 years ago #

    Hi,

    I have a problem with media_sideload_image ...it uploads the image and then just dies

    set_time_limit(300);
    
    require_once('../wp-admin/includes/media.php');
    require_once('../wp-admin/includes/file.php');
    
    $upload = media_sideload_image($url, $post_id, $desc);

    Anyone have experience with that?

Topic Closed

This topic has been closed to new replies.

About this Topic