Skip to content

Commit

Permalink
Add log for download
Browse files Browse the repository at this point in the history
  • Loading branch information
doraemonkeys committed Jun 26, 2023
1 parent ffcaec8 commit bfb199c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func downloadHandler(c *gin.Context) {
c.String(400, ErrorInvalidData+": file path is empty")
return
}
logrus.Info("download file: ", string(filePath))
filename := filepath.Base(string(filePath))
c.Header("file-name", filename)
c.File(string(filePath))
Expand Down

0 comments on commit bfb199c

Please sign in to comment.