title: Upload image from src attribute of img tag JQuery AJAX PHP
body: <p>I wanted to know if there is a way to upload image to server from the <code>src</code> of the <code>img</code> tag. The <code>src</code> can be an absolute path or base64 encoded string depending on some conditions. </p>
  
  <p>I tried a sample application using JQuery AJAX and PHP running in wamp server. In that I am creating a form with file upload control. And posting a FormData object of the uploaded image to server.
  Reference: <a href="https://www.simplifiedcoding.net/php-upload-image-tutorial-using-jquery-ajax/" rel="nofollow">https://www.simplifiedcoding.net/php-upload-image-tutorial-using-jquery-ajax/</a></p>
  
  <p>Now I want to upload image from <code>src</code> instead of the image selected using file upload control.</p>