title: Upload Media to WordPress using REST API
body: <p>how to upload media-image or featured-image in wordpress using rest api.</p>
  
  <p>I've created new post using WordPress REST API, and now I am uploading Image to my Wordpress Site using REST API but i am unable to achieve it due to error "No data Supplied" kindly please Check Screenshot </p>
  
  <p><a href="https://i.stack.imgur.com/RqNlu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RqNlu.png" alt="enter image description here"></a></p>
  
  <p>which is the best way to create new post in WordPress with Featured Image, right now in my mind</p>
  
  <ol>
  <li>Upload Media File to WordPress Site and Get Media ID </li>
  <li>Create New Post with Media ID</li>
  </ol>