fix file naming sanitisation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user