title: html form - upload file to storage without php
body: <p>All the exmaple I saw was with a form that redirect to file upload.php. I want to do a little differnt.</p>
  
  <p>I have a form and there I have :</p>
  
  <pre><code>&lt;input type="file" name="img1"  id="img1"&gt;
  </code></pre>
  
  <p>and in the end of the form:</p>
  
  <pre><code>&lt;button type="button" class="submit-button" onclick="signUp()"/&gt; signup &lt;/button&gt;
  </code></pre>
  
  <p>I want in the signUp() function to store the file in my storage and get url to thiss file.</p>
  
  <p>What I did so far is : </p>
  
  <pre><code> var fileUploadControl = $("#img1")[0];
  if (fileUploadControl.files.length &gt; 0) {
  
    var file = fileUploadControl.files[0];
  
  ......................
  
  }
  </code></pre>
  
  <p>but I don't know how to continue. thanks!</p>