mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update upload.js
This commit is contained in:
parent
45ec382ddc
commit
35b5999f60
@ -76,9 +76,10 @@ define(['md5', 'notify'], function (SparkMD5, Notify, allowMime) {
|
||||
file.notify = new NotifyExtend(file);
|
||||
}
|
||||
if (that.option.size && file.size > that.option.size) {
|
||||
that.event('upload.error', {file: file}, file, '大小超出限制');
|
||||
that.event('upload.error', {file: file}, file, '大小超出限制!');
|
||||
}
|
||||
}), layui.each(files, function (index, file) {
|
||||
});
|
||||
layui.each(files, function (index, file) {
|
||||
// 禁传异常状态文件
|
||||
if (typeof file.xstate === 'number' && file.xstate === -1) return;
|
||||
// 图片限宽限高压缩
|
||||
|
Loading…
x
Reference in New Issue
Block a user