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
8f14948573
commit
b967dd6a6a
@ -22,7 +22,7 @@ define(['md5'], function (SparkMD5, allowExtsMimes) {
|
|||||||
files = object.pushFile(), $input.data('files', files);
|
files = object.pushFile(), $input.data('files', files);
|
||||||
for (index in files) md5file(files[index]).then(function (file) {
|
for (index in files) md5file(files[index]).then(function (file) {
|
||||||
$input.data('file', file).data('index', index);
|
$input.data('file', file).data('index', index);
|
||||||
jQuery.ajax("{:url('@admin/api.upload/state')}", {
|
jQuery.ajax("{:url('@admin/api.upload/state',[],false)}", {
|
||||||
data: {xkey: file.xkey, uptype: uptype, safe: safe}, method: 'post', success: function (ret) {
|
data: {xkey: file.xkey, uptype: uptype, safe: safe}, method: 'post', success: function (ret) {
|
||||||
file.xurl = ret.data.url;
|
file.xurl = ret.data.url;
|
||||||
if (ret.code === 404) {
|
if (ret.code === 404) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user