Skip to content

Commit 438cc64

Browse files
author
Roberto Sora
committed
cleanup path for extra file tmp location
1 parent fcb613a commit 438cc64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

conn.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ func uploadHandler(c *gin.Context) {
121121
filePaths = append(filePaths, filePath)
122122

123123
tmpdir, err := ioutil.TempDir("", "extrafiles")
124+
tmpdir=filepath.Clean(tmpdir)
124125
if err != nil {
125126
c.String(http.StatusBadRequest, err.Error())
126127
return

0 commit comments

Comments
 (0)