From 2d142220731beb977cc46d4c01fa18c1e8930849 Mon Sep 17 00:00:00 2001 From: guosurui <13012615613@163.com> Date: Mon, 12 Feb 2024 21:18:57 +0800 Subject: [PATCH] =?UTF-8?q?hotfix:=20=E4=B8=B4=E6=97=B6=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=89=A9=E5=B1=95=E5=90=8D=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/checkin.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/service/checkin.go b/service/checkin.go index 7351ef2..d130a7f 100644 --- a/service/checkin.go +++ b/service/checkin.go @@ -1,10 +1,10 @@ package service import ( + "fmt" "github.com/google/uuid" "integrity-checkin/data/po" "integrity-checkin/pkg/app" - "integrity-checkin/pkg/util" "io" "os" "path/filepath" @@ -116,9 +116,10 @@ func (c CheckinService) UploadFile(aw *app.Wrapper) app.Result { if err != nil { return aw.Error(err.Error()) } - if err = util.ValidateFilename(formFile.Filename); err != nil { - return aw.Error(err.Error()) - } + fmt.Println(formFile.Filename) + //if err = util.ValidateFilename(formFile.Filename); err != nil { + // return aw.Error(err.Error()) + //} if _, err = os.Stat("files"); err != nil { err = os.Mkdir("files", 0666) if err != nil {