From c49e1e62d5f77061a4e88343f8fbdd5866140687 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Mon, 22 Feb 2021 00:21:26 -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 78672c5..fb00789 100644 --- a/upload.go +++ b/upload.go @@ -328,7 +328,7 @@ func processUpload(upReq UploadRequest) (upload Upload, err error) { fileExpiry = expiry.NeverExpire } } else { - if upReq.size > Config.maxDurationSize && upReq.expiry > CmaxDurationTime { + if upReq.size > Config.maxDurationSize && upReq.expiry > maxDurationTime { fileExpiry = time.Now().Add(maxDurationTime) } else { fileExpiry = time.Now().Add(upReq.expiry)