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)