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
73fde3ff2d
commit
8fcdfedffd
@ -2,7 +2,7 @@ define(['md5'], function (SparkMD5) {
|
||||
var allowExtsMimes = JSON.parse('{$exts|raw}');
|
||||
return function (element, InitHandler, UploadedHandler) {
|
||||
var exts = [], mimes = [];
|
||||
var safe = $(element).attr('data-safe');
|
||||
var safe = $(element).attr('data-safe') || '';
|
||||
var uptype = $(element).attr('data-uptype') || '';
|
||||
var multiple = $(element).attr('data-multiple') > 0;
|
||||
var types = ($(element).data('type') || '').split(',');
|
||||
|
Loading…
x
Reference in New Issue
Block a user