title: How to upload filepond image to MySql with PHP?
body: <p>I have included the javascript in my project and FilePond works great on the FrontEnd, as you can see below:</p>
  
  <p><a href="https://i.stack.imgur.com/XPacx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XPacx.png" alt="enter image description here"></a></p>
  
  <p>Here is the code in my HTML:
  When I submit the form this is what I get for filepond:
  <a href="https://i.stack.imgur.com/3EzKk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3EzKk.png" alt="enter image description here"></a>
  Code:
  <a href="https://snipsave.com/user/viktorgavrilovic/snippet/TpgWPYaBBmWe1N44YO/" rel="nofollow noreferrer">https://snipsave.com/user/viktorgavrilovic/snippet/TpgWPYaBBmWe1N44YO/</a></p>
  
  <p>Now, how can I save the image to a folder, let's say: C:/temp/?</p>
  
  <p>I know that I have to decode because the data is base64 encoded, here is my PHP so far, with decoded format:</p>
  
  <pre><code>$filepond = $_POST["filepond"];
  $json_decoded = json_decode($filepond[0], true);
  var_dump($json_decoded);
  </code></pre>
  
  <p>and this is what I get from the decoded format:
  <a href="https://i.stack.imgur.com/xlKcz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xlKcz.png" alt="enter image description here"></a>
  Code:
  <a href="https://snipsave.com/user/viktorgavrilovic/snippet/u3Th8eqrzvmq6IAWAI/" rel="nofollow noreferrer">https://snipsave.com/user/viktorgavrilovic/snippet/u3Th8eqrzvmq6IAWAI/</a></p>
  
  <p>Could you please tell me what should I do next in order to save the image in a folder and in a MySql DB? Thank you very much!</p>