hotfix/远程访问多媒体中心
LMR 7 years ago
parent 9cd278224c
commit 3f49337186

@ -364,11 +364,12 @@ class Info_amp extends CI_Controller
$file = $_FILES['file'];
if (!$file) return;
//转移文件
$path = realpath('../cht-system/views/information/word_source').'/'.basename($file['name']);
$md5_name = md5($file["name"]).strrchr($file["name"],'.');
$path = realpath('../cht-system/views/information/word_source').'/'.basename($md5_name);
if (move_uploaded_file($file['tmp_name'], $path)) {
$msg = "File is valid, and was successfully uploaded: ".$path;
$msg = "file path: ".$path;
} else {
$msg = "Possible file upload attack!";
$msg = "file upload error!";
}
if($file) {

Loading…
Cancel
Save