allow up to 50 files upload

This commit is contained in:
Erikas 2024-07-07 03:18:00 +03:00
parent 8027375802
commit ce63c7e9a1

View File

@ -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
}