publish: check if storage exists

This commit is contained in:
André Roth committed 2026-06-18 21:34:55 +02:00
1 parent 29e643cdf6
commit dd85493b1a
14 files changed
+94 -70

No files matched your search

+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)