title: How to narrow down my base64 image url to just the image name?
body: <p><strong>php script:</strong></p>
  <pre><code>$contentType = isset($_SERVER[&quot;CONTENT_TYPE&quot;]) ? trim($_SERVER[&quot;CONTENT_TYPE&quot;]) : '';
  
  if ($contentType === &quot;application/json&quot;) {
    //Receive the RAW post data.
    $content = trim(file_get_contents(&quot;php://input&quot;));
  
    $decoded = json_decode($content, true);
  
    //If json_decode failed, the JSON is invalid.
    if(! is_array($decoded)) {
        echo &quot;Invalid json&quot;;
  
    } else {
        $image=$decoded['image'];
    }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/61qnv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/61qnv.jpg" alt="enter image description here" /></a></p>
  <p>As you can see in the above given picture, I just want to upload the image file name and not its base64 encoded string. How do I do that?</p>