From 797a61cf5c64a4440f1fa88f778a86c09bd189b6 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Mon, 22 Feb 2021 00:27:21 -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 fb00789..7676274 100644 --- a/upload.go +++ b/upload.go @@ -320,7 +320,7 @@ func processUpload(upReq UploadRequest) (upload Upload, err error) { // Get the rest of the metadata needed for storage var fileExpiry time.Time - maxDurationTime := time.Duration(Config.maxDurationTime) + maxDurationTime := time.Duration(Config.maxDurationTime) * time.Second if upReq.expiry == 0 { if upReq.size > Config.maxDurationSize && maxDurationTime > 0 { fileExpiry = time.Now().Add(maxDurationTime)