We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42fcd7 commit 0220709Copy full SHA for 0220709
conn.go
@@ -124,9 +124,6 @@ func uploadHandler(c *gin.Context) {
124
return
125
}
126
127
- var filePaths []string
128
- filePaths = append(filePaths, filePath)
129
-
130
tmpdir, err := os.MkdirTemp("", "extrafiles")
131
if err != nil {
132
c.String(http.StatusBadRequest, err.Error())
@@ -139,7 +136,6 @@ func uploadHandler(c *gin.Context) {
139
136
140
137
141
138
142
- filePaths = append(filePaths, path)
143
log.Printf("Saving %s on %s", extraFile.Filename, path)
144
145
err = os.MkdirAll(filepath.Dir(path), 0744)
0 commit comments