How to upload file from file input to Rest API?

Wanted to send an upload file into my API, but it seems file input / file dropzone cannot send the file into my REST API.

Have tried multiple fixes suggested in other posts, such as JSON.stringify and using binary input type to no successful outcome.

Can anyone help, thank you.

What I'm doing is parsing the file with an Event Handler that exits in the file component.

After that you'll be able to retrieve the base64Data like

{{ fileInput1.value[0].base64Data }}

and send it to the backend where you can work with it and store it wherever you want to.