title: How to upload a zip to firebase storage
body: <p>I am trying to upload a zip file that contains an HTML file inside to firebase storage. I am using JSzip to zip the file. Here is how my code looks right now:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> DownloadHandler = () =&gt; {
      var zip = new JSZip();
      zip.file("story.html", `&lt;body&gt;${this.state.html}&lt;/body&gt;`);
      zip.generateAsync({ type: "blob" }).then(function (blob) {
        storage.ref("story").put(blob);
      });
    };</code></pre>
  </div>
  </div>
  </p>
  <p>When I run the current code it uploads the zip but inside the zip, I am getting a document file and not an HTML file. Also, when I click this document file it says it is encoded. How can I modify my code so that when the file zips it zips an HTML file inside?</p>