Skip to content
Advertisement

SEND BLOB VIDEO (FROM WEBRTC) TO A MYSQL SERVER IN PHP

I have tried using some code to get blob uploaded to server, but this code has not functioned as intended. need help in finding where the error is and perhaps how to upload blob video to MySQL server.

The js code I used is

JavaScript

Then this is the PHP code I tried

JavaScript

Once I am able to get this working I can be able to insert the data into MySQL database Thank you for helping

Advertisement

Answer

you placed your blob into your formdata OBJECT and called it data

JavaScript

So when that gets to PHP is will be placed in

JavaScript

Just like as if you had done

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement