How do i use the Nextcloud File Upload in my app

I would like to give users the possibility to store files created by my app (on the client side) directly in Nextcloud.
After some digging in the Nextcloud code, if found the OC.Uploader in file-upload.js, but i can’t figure out how it works.
Can someone tell me how the Nextcloud javascript file uploader works and how i can use it? Is there some kind of documentation or at least any other app that i could look at?