publish: check if storage exists

This commit is contained in:
André Roth
2026-06-18 13:36:17 +02:00
parent 29e643cdf6
commit dd85493b1a
14 changed files with 94 additions and 70 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ func apiFilesUploadOne(c *gin.Context) {
AbortWithJSONError(c, 500, err)
return
}
defer dst.Close()
defer func() { _ = dst.Close() }()
if _, err = io.Copy(dst, c.Request.Body); err != nil {
AbortWithJSONError(c, 500, err)