Php 无法移动上载的视频文件
我正在通过在线表单上传视频。下面是一段代码:Php 无法移动上载的视频文件,php,html,file-upload,Php,Html,File Upload,我正在通过在线表单上传视频。下面是一段代码: $path = "../user_uploads/user_media/" . $uid . "/"; $videoFile = $_FILES['files']['tmp_name']; $imageFile = $uid . '_' . time() . '.jpg'; if (move_uploaded_file($videoFile, $path . $videoFile)) { $getFromSecond = 5; $s
$path = "../user_uploads/user_media/" . $uid . "/";
$videoFile = $_FILES['files']['tmp_name'];
$imageFile = $uid . '_' . time() . '.jpg';
if (move_uploaded_file($videoFile, $path . $videoFile)) {
$getFromSecond = 5;
$size = "350x200";
$cmd = "$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile";
if (shell_exec($cmd)) {
$picres = "y";
} else {
$picres = "";
}
您能告诉我为什么无法移动\u上传的\u文件吗?尝试转储移动\u上传的\u文件$videoFile,$path$videoFile.Check$_FILES['FILES']['error']的值为6。有时没有定义临时目录。