本文整理匯總了PHP中UploadHandler::Save方法的典型用法代碼示例。如果您正苦於以下問題:PHP UploadHandler::Save方法的具體用法?PHP UploadHandler::Save怎麽用?PHP UploadHandler::Save使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UploadHandler
的用法示例。
在下文中一共展示了UploadHandler::Save方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: UploadHandler
$res["reason"] = "Failed To Update Module";
}
}
} else {
$res['result'] = false;
$res["reason"] = "U have no power !";
}
} else {
$res['result'] = false;
$res['reason'] = "Can't find Module ID:!" . $m_id;
}
}
if ($op == "add") {
if ($author_id === $_SESSION['user_info']['id']) {
$upload = new UploadHandler();
$res = $upload->Save($file, "js");
$module->m_name = $m_name;
$module->m_info = $m_info;
$module->default_config = "";
$module->risk = $risk;
$module->author_id = $author_id;
$module->m_id = $m_id;
$module->category_id = $category_id;
if ($res["result"]) {
$module->m_path = $res["reason"];
$new_m_id = $module->addModule();
if ($new_m_id) {
$res["result"] = true;
$res["reason"] = $clientPage . "?m_id=" . $new_m_id;
$log->warn("Add Module Success, User:" . $_SESSION['user_info']['username'] . " ADDR:" . $_SERVER["REMOTE_ADDR"]);
} else {