fix file naming sanitisation

This commit is contained in:
2026-03-23 17:46:27 +01:00
parent 5bcca61d59
commit 82eb9de5f1
4 changed files with 32 additions and 35 deletions

View File

@@ -26,8 +26,8 @@ func (h *Handler) UploadMulti(c *gin.Context) {
c.JSON(http.StatusBadRequest, gin.H{"error": "missing files"})
return
}
if len(files) > 10 {
c.JSON(http.StatusBadRequest, gin.H{"error": "too many files (max 10)"})
if len(files) > 50 {
c.JSON(http.StatusBadRequest, gin.H{"error": "too many files (max 50)"})
return
}