Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-21 20:51:32 -05:00
parent c4f40d2747
commit 5c3ace8829
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) {
func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
if len(r.Header.Get("Content-Length")) > 0 {
i, err := strconv.Atoi(r.Header.Get("Content-Length"))
i, err := strconv.ParseUint(r.Header.Get("Content-Length"), 10, 64)
if i > Config.maxSize {
upReq.size = i