API call to upload file in external backend

I need to call an api endpoint to send an file or image to my backend

The body of the call is bellow

How can I get : filename, contents(as a base64) of an uploaded file in flutterflow

{"fileparam":

{"filename":"pixel.jpg", "contents":"base64-content...","private":false}

}