title: How to get a File() or Blob() from an URL in javascript?
body: <p>I try to upload an image to the Firebase storage from an URL (with <code>ref().put(file)</code>)(www.example.com/img.jpg). </p>
  
  <p>To do so i need a File or Blob, but whenever I try <code>new File(url)</code> it says "not enough arguments“…</p>
  
  <p>EDIT:
  And I actually want to upload a whole directory of files, that’s why i can’t upload them via Console</p>