allow up to 50 files upload
This commit is contained in:
parent
8027375802
commit
ce63c7e9a1
@ -168,13 +168,13 @@ func postBenchmarkCreate(c *gin.Context) {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(files) > 30 {
|
if len(files) > 50 {
|
||||||
c.HTML(http.StatusUnauthorized, "error.tmpl", gin.H{
|
c.HTML(http.StatusUnauthorized, "error.tmpl", gin.H{
|
||||||
"activePage": "error",
|
"activePage": "error",
|
||||||
"username": session.Get("Username"),
|
"username": session.Get("Username"),
|
||||||
"userID": session.Get("ID"),
|
"userID": session.Get("ID"),
|
||||||
|
|
||||||
"errorMessage": "Too many files uploaded (max 30)",
|
"errorMessage": "Too many files uploaded (max 50)",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user