title: How to get file as FormData when knowing its File URI?
body: <p>I'm sending images/file within form data to a rest api and i was able to send the data using code like this before when the user had selected a file:</p>
  
  <pre><code> var data = new FormData(); 
   var files = $("#file-select").get(0).files;
   data.append('imgfile', files[0]);
  </code></pre>
  
  <p>However i now got some new code that enables me to get the File URI so i cant use the #file-select to get the file anymore. </p>
  
  <p>My question is now: How can i use my File URI to send my file as form data something similar to above? </p>
  
  <p>Any help or input highly appreciated, thanks! </p>