See discussion here
Allowing native JavaScript File Object enabled you to customize your own upload form to your own external site or integrate to other api service
Example code
const file = $w(" #theuploadbutton ").value[0]
const fd = new FormData()
fd.append(“input”, file)
fetch(“someurl”, {body: fd})