Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-22 00:21:26 -05:00
parent 2f2470220d
commit c49e1e62d5
1 changed files with 1 additions and 1 deletions

View File

@ -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)