FileUpload filebytes convert to `multipart/form-data` compatible data

I’m working on an integration between Ignition and a video platform and part of the process is obviously uploading a video. However, I’m running into a problem uploading the video - the API docs state that the video upload request must be sent with a payload and the content type must be multipart/form-data.

Here is the request format:

curl -X POST \
     -F 'file=@/path/to/your/video.mp4' \
     '<UPLOAD_URL>'

How do I convert a byte array (coming from the File Upload component) into something I can send as part of the request?