From 689b0f769a467b0bcdf7074a4b8a9ea717b10bf2 Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Fri, 10 Nov 2023 03:24:24 +0000 Subject: [PATCH] update file --- route/v1/file.go | 1 + 1 file changed, 1 insertion(+) diff --git a/route/v1/file.go b/route/v1/file.go index 98bd2af..f07f5cf 100644 --- a/route/v1/file.go +++ b/route/v1/file.go @@ -582,6 +582,7 @@ func PostFileUpload(c *gin.Context) { return } go func() { + time.Sleep(11 * time.Second) if err := file.RMDir(tempDir); err != nil { logger.Error("error when trying to remove `"+tempDir+"`", zap.Error(err))