From ce63c7e9a141b9b3179b3536641b9bd07cdfcb6c Mon Sep 17 00:00:00 2001 From: Erikas Date: Sun, 7 Jul 2024 03:18:00 +0300 Subject: [PATCH] allow up to 50 files upload --- benchmarks.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks.go b/benchmarks.go index 890303d..99102e7 100644 --- a/benchmarks.go +++ b/benchmarks.go @@ -168,13 +168,13 @@ func postBenchmarkCreate(c *gin.Context) { }) return } - if len(files) > 30 { + if len(files) > 50 { c.HTML(http.StatusUnauthorized, "error.tmpl", gin.H{ "activePage": "error", "username": session.Get("Username"), "userID": session.Get("ID"), - "errorMessage": "Too many files uploaded (max 30)", + "errorMessage": "Too many files uploaded (max 50)", }) return }