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?
Hi, I am trying to do the same conversion right now from a file byte array to the multipart/form-data for an API request. I was curious to know if you had ever found a solution for this?