Update upload.go
This commit is contained in:
parent
2f2470220d
commit
c49e1e62d5
|
@ -328,7 +328,7 @@ func processUpload(upReq UploadRequest) (upload Upload, err error) {
|
||||||
fileExpiry = expiry.NeverExpire
|
fileExpiry = expiry.NeverExpire
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if upReq.size > Config.maxDurationSize && upReq.expiry > CmaxDurationTime {
|
if upReq.size > Config.maxDurationSize && upReq.expiry > maxDurationTime {
|
||||||
fileExpiry = time.Now().Add(maxDurationTime)
|
fileExpiry = time.Now().Add(maxDurationTime)
|
||||||
} else {
|
} else {
|
||||||
fileExpiry = time.Now().Add(upReq.expiry)
|
fileExpiry = time.Now().Add(upReq.expiry)
|
||||||
|
|
Loading…
Reference in New Issue