mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-01-23 02:14:33 +00:00
Update upload.go
This commit is contained in:
parent
c49e1e62d5
commit
797a61cf5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue