layui上传文件设置超时时间

layui上传文件设置超时时间,第1张

layui上传文件设置超时时间

最近搞个判断是否阻止,网上搜了些,可以用,但是团迹就不能延迟上传了,研究了下代码,这样写就能先选中再上传了

打开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 )


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/tougao/8201707.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-14
下一篇 2023-04-14

发表评论

登录后才能评论

评论列表(0条)

保存