title: Trying to upload generated pdf to firebase storage using expo
body: <p>When I upload to firebase storage and open the pdf file I get &quot;failed to open pdf file&quot;. Obviously, I am not uploading it correctly.</p>
  <pre><code> //Firebase Storage
    const storage = getStorage();
  
    // Create a reference to 'ticketNumber.pdf'
    const storageRef = ref(storage, `${ticketNumber}.pdf`);
  
    async function print() {
      const html = await generateHTML();
  
      const { uri } = await Print.printToFileAsync({
        html,
      });
      await uploadBytes(storageRef, uri).then((snapshot) =&gt; {
        console.log(&quot;Uploaded a blob or file!&quot;);
      });
      console.log(&quot;File has been saved to:&quot;, uri);
      await shareAsync(uri, { UTI: &quot;.pdf&quot;, mimeType: &quot;application/pdf&quot; });
    }
  </code></pre>