最近搞个判断是否阻止,网上搜了些,可以用,但是团迹就不能延迟上传了,研究了下代码,这样写就能先选中再上传了
打开upload搜索y = function () 之后注释帆胡原代码,加入
if ("choose" !== i &&!l.auto || (l.choose &&l.choose(g), "choose" !== i))return "choose" === t ? l.choose &&l.choose(g) : ((l.before &&l.before(g)) === false ? '态或拦' : a.ie ? a.ie >9 ? u() : c() : void u())
1
1
最后就这样了
y = function () { if ("choose" !== i &&!l.auto || (l.choose &&l.choose(g), "choose" !== i))return "choose" === t ? l.choose &&l.choose(g) : ((l.before &&l.before(g)) === false ? '' : a.ie ? a.ie >9 ? u() : c() : void u())/*if("choose"!==i&&!l.auto||(l.choose&&l.choose(g),"choose"!==i))return l.before&&l.before(g),o.ie?o.ie>9?u():c():void u()*/}
1
1
require_once "../common_mysql.php"require_once MESSAGE_PATH . 'zh/zh_calendar_message.php'
require_once "function_common/user_function.php"
require_once "function_common/public_function.php"
global $DB
$sql_time = microtime ( true )
//$uid = $self_userid
//保存图片
$json_result ['status'] = 0
$path = 'upfile'
$json_result ['status'] = 0
$json_result ['successmsg'] = '轮激咐传失败'
if (isset ( $_FILES ['imageZip'] )) {
$upfile = 'upfile/' . $_FILES ['imageZip'] ['name']
if (! @file_exists ( $path )) {
@mkdir ( $path )
}
$result = @move_uploaded_file ( $_FILES ['imageZip'] ['tmp_name'], $upfile )
if (! $result) {
$json_result ['status'] = 0
$json_result ['successmsg'] = '传失败'腊纯
$json_result ['datas'] = array ('铅带savePath' =>$upfile )
exit ( json_encode ( $json_result ) )
}
}
$json_result ['status'] = 1
$json_result ['datas'] = array ('savePath' =>$upfile )
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)