Nudge in the right direction with a pdf plugin

Hi everyone,

I’m developing a simple client-side plugin for Bubble.io that generates a PDF from an HTML element using html2canvas and jspdf. Everything works perfectly up to the point where I need to upload the generated PDF to Bubble’s File Manager so I can send it out. Ideally, action step 1 would be generate the pdf (this works) and then action step 2 is send an email with attachment “get result of step 1.” What’s the best way to do this? Do I need to upload to bubble’s file manager? Do I need to do that via their api? Or is there a more straightforward method that doesnt involve an api?

Any help or pointers would be greatly appreciated!