Using "Uppy" from Javascript to write files to the server

HI,

We are using Uppy to upload files on our site and I was wondering if its possible, via Javascript to upload files via Uppy.

There are many reasons why we want to do this.

The most important reason is that we want to save a draft of the filled in form, so that the next time that form is loaded the user’s form content is refilled from the draft content from the file.

Another reason is to take a screenshot of the page and upload that as an image.

Is there a Javascript api that we can use to do this?

Regards
Mark

Has anyone done anything similar?