From 02b24543e39e99ce4d38c143297925c37340739c Mon Sep 17 00:00:00 2001 From: w-mj Date: Mon, 13 Mar 2023 22:03:01 +0800 Subject: [PATCH] upload file --- Makefile | 2 -- src/persistent_file_manager.go | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1ccd440..7a82f10 100644 --- a/Makefile +++ b/Makefile @@ -24,8 +24,6 @@ push: docker docker push $(IMAGE_TAG) tag: - git add . - git commit -m $(TAG) git tag $(TAG) git push origin master git push origin $(TAG) \ No newline at end of file diff --git a/src/persistent_file_manager.go b/src/persistent_file_manager.go index d08a059..4b374f0 100644 --- a/src/persistent_file_manager.go +++ b/src/persistent_file_manager.go @@ -46,6 +46,7 @@ func GetPostOrDeleteFile(c *gin.Context) { log.WithError(err).Error("GetPostOrDeleteFile: Make nfs dir error") } } + log.Infof("Receive file name: %s, size: %d, path: %s", file.Filename, file.Size, filePath) err = c.SaveUploadedFile(file, filePath) if err != nil { log.WithError(err).Error("GetPostOrDeleteFile: Save file error")