如何使用mysql上传和检索视频文件 [英] how to upload and retrieve video files using mysql

查看:55
本文介绍了如何使用mysql上传和检索视频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用脚本上传文件,脚本是

I am using the scripts for upload file, the scripts was

if($_REQUEST[submit]){
$target_path = "upload/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 
$file_name = basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
 {
 $result=MYSQL_QUERY("INSERT INTO files (File_Id, File_Name) ". "VALUES ('','$file_name')");
    echo "The file ".  basename( $_FILES['uploadedfile']['name']). 
    " has been uploaded";
} else{
    echo "There was an error uploading the file, please try again!";
}

}


但它会上传其他类型的文件,但不会上传视频文件.我的视频大小为50mb.我检查出max_file_upload的大小,它有128mb.所以,您可以帮我上传和检索吗?


but it uploads other type of files, does not upload video files. my video has the size of 50mb. i check out the max_file_upload size, it has 128mb. So can you help me to upload and retrieve?

推荐答案

_REQUEST [submit]){
_REQUEST[submit]){


target_path = " ;
target_path = "upload/";


target_path =
target_path =


这篇关于如何使用mysql上传和检索视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆