From dc42b56bf6aa716ab5bf71611815dda2372c488f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=B8=88=E5=85=84=E6=B3=95=E5=8F=B7=E9=9A=8F?= =?UTF-8?q?=E7=BC=98?= <18862253202@qq.com> Date: Tue, 23 Sep 2025 11:16:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E6=97=B6?= =?UTF-8?q?=E5=81=9A=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 电子展板/Assets/Views/Index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/电子展板/Assets/Views/Index.html b/电子展板/Assets/Views/Index.html index c91f8b9..1ff4d37 100644 --- a/电子展板/Assets/Views/Index.html +++ b/电子展板/Assets/Views/Index.html @@ -280,6 +280,9 @@ var uploadInst1 = upload.render({ elem: '#upload1', url: '/uploadImage', // 实际使用时改成您自己的上传接口即可。 + accept: "images", + acceptMime: "image/jpeg,image/gif,image/png,imag/bmp", + //exts: "jpg|png|gif|bmp|jpeg", //accept为file时需要设置 before: function (obj) { // 预读本地文件示例,不支持ie8 //obj.preview(function (index, file, result) { @@ -318,6 +321,9 @@ var uploadInst2 = upload.render({ elem: '#upload2', url: '/uploadImage', // 实际使用时改成您自己的上传接口即可。 + accept: "images", + acceptMime: "image/jpeg,image/gif,image/png,imag/bmp", + //exts: "jpg|png|gif|bmp|jpeg", //accept为file时需要设置 before: function (obj) { // 预读本地文件示例,不支持ie8 //obj.preview(function (index, file, result) { @@ -357,6 +363,9 @@ var uploadInst3 = upload.render({ elem: '#upload3', url: '/uploadImage', // 实际使用时改成您自己的上传接口即可。 + accept: "images", + acceptMime: "image/jpeg,image/gif,image/png,imag/bmp", + //exts: "jpg|png|gif|bmp|jpeg", //accept为file时需要设置 before: function (obj) { // 预读本地文件示例,不支持ie8 //obj.preview(function (index, file, result) { @@ -396,6 +405,9 @@ var uploadInst4 = upload.render({ elem: '#upload4', url: '/uploadImage', // 实际使用时改成您自己的上传接口即可。 + accept: "images", + acceptMime: "image/jpeg,image/gif,image/png,imag/bmp", + //exts: "jpg|png|gif|bmp|jpeg", //accept为file时需要设置 before: function (obj) { // 预读本地文件示例,不支持ie8 //obj.preview(function (index, file, result) {