title: upload binary file base64 encoded and get filename in php
body: <p>How to get the file name from base64 encoded binary files that posted to php application.</p>
  
  <p>I could get mime type info as in that code block </p>
  
  <pre><code> $finfo = finfo_open();
   $mime_type = finfo_buffer($finfo, $data, FILEINFO_MIME_TYPE);
   finfo_close($finfo);
   // get file type png. jpg
   $ext = $mime_type ? str_replace('image/', '', $mime_type) : 'png';
  </code></pre>
  
  <p>Is it possible to get original file name like mime type?</p>
  
  <p>Thanks in advance</p>