Skip to content

Commit 9693080

Browse files
committed
Add debug messages to understand what's going wrong with the zero upload
1 parent 92a5d4b commit 9693080

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

conn.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ func uploadHandler(c *gin.Context) {
111111
}
112112

113113
for _, extraFile := range data.ExtraFiles {
114-
ioutil.WriteFile(filepath.Join(filepath.Dir(filePath), extraFile.Filename), extraFile.Hex, 0644)
114+
path := filepath.Join(filepath.Dir(filePath), extraFile.Filename)
115+
log.Printf("Saving %s on %s", extraFile.Filename, path)
116+
err := ioutil.WriteFile(path, extraFile.Hex, 0644)
117+
if err != nil {
118+
log.Printf(err.Error())
119+
}
115120
}
116121

117122
if data.Rewrite != "" {

0 commit comments

Comments
 (0)