upload file

This commit is contained in:
w-mj 2023-03-13 22:03:01 +08:00
parent 9b0e21775a
commit 02b24543e3
No known key found for this signature in database
GPG Key ID: 3A2CB5BE2F835897
2 changed files with 1 additions and 2 deletions

View File

@ -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)

View File

@ -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")