Sending recored video, blob, to flask by using ajax

So I have a code that records and plays the recorded video captured from webcam however I am trying to upload it to my flask server.

I have seen examples of sending captured images to flask by ajax however I am trying to send myrecorded blob but it’s not working out with me.

To be fair, I am new to this whole thing so I am sure I am doing something wrong but if anyone knows how to do that or has the code part of sending a blob to flask by ajax please let me know I have been searching for such thing for a while and I can’t find anything about sending a recorded video to a server.