I need help with uploading files to Cloudflare Stream through Unity and C#

I am using the Unity Game Engine to upload and download videos/images to the Cloudflare stream through a game. Unity uses C# and a UnityWebRequest to handle web requests instead of cURL. I am able to request a one-time creator upload URL from Unity, but when trying to upload my file to that URL I get HTTP/1.1 Bad Request. I have tried sending the bytes of the video as well as filepath as well as bytes in string format but I can’t figure out what is wrong. Could anyone give me some pointers?

I am getting Decoding Error 10004 through Unity Web request.
I tested it with curl and got the same error, but uploading by drag and drop through the dashboard works fine