我正在将此视频 Blob 发送到 uploadVideo.php 文件我将如何在 uploadvideo.php 页面上检索它?
function postVideoToServer(videoblob) {
var data = {};
data.video = videoblob;
data.metadata = 'test metadata';
data.action = "upload_video";
jQuery.post("http://mysite.com/uploadvideo.php", data, onUploadSuccess);
}
更多细节
function postVideoToServer(videoblob) {
var data = {};
data.video = videoblob;
data.metadata = 'test metadata';
data.action = "upload_video";
jQuery.post("http://mysite.com/uploadvideo.php", data, onUploadSuccess);
}
在uploadvideo.php我有这个:
<?php
require("connect.php");
$video = $_POST["video"];
$up = mysql_query("INSERT INTO video VALUES ('$video')");
?>
但它似乎仍然不起作用?我认为我做错了什么?