From 5c3ace8829279ef67b02bbe8cf49330be629489b Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 20:51:32 -0500 Subject: [PATCH] Update upload.go --- upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.go b/upload.go index d69b0c4..f7519bf 100644 --- a/upload.go +++ b/upload.go @@ -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