From 602be3f64c3709f9773284c48ca8aead180d060f Mon Sep 17 00:00:00 2001 From: zmk <496160012@qq.com> Date: 星期三, 29 五月 2024 12:21:06 +0800 Subject: [PATCH] 修改了上传文件的逻辑 --- javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/upload.html | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/upload.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/upload.html index b02bb26..3f39655 100644 --- a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/upload.html +++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/upload.html @@ -13,7 +13,6 @@ <form id="formId" enctype="multipart/form-data"> <div class="select-list"> <ul> - <li> <p>涓婁紶鏂囦欢锛�</p> <input type="file" id="file" name="file"/> @@ -43,7 +42,7 @@ function upload(){ var file = $('#file').val(); - if (file == '' || (!$.common.endWith(file, '.zip'))){ + if (file == ''|| file ==null){ $.modal.msgWarning("璇烽�夋嫨寰呬笂浼犵殑鏂囦欢"); return false; } -- Gitblit v1.9.1