Skip to content
Permalink
Browse files

Merge pull request #61 from tribut/unencrypted-unixdeleteat

Add UnixDeleteAt for unencrypted uploads
  • Loading branch information...
Depado committed Feb 22, 2018
2 parents 0b032c2 + ea90b8d commit 573e1c2fdb8eed1c00bac50aef46f6962f879d82
Showing with 3 additions and 1 deletion.
  1. +3 −1 server/views/unencrypted.go
@@ -74,11 +74,13 @@ func Create(c *gin.Context) {
return
}
}
del := time.Now().Add(duration)
newres := &models.Resource{
Key: u,
Name: h.Filename,
Once: once,
DeleteAt: time.Now().Add(duration),
DeleteAt: del,
UnixDeleteAt: del.Unix(),
Size: wr,
}
if err = newres.Save(); err != nil {

0 comments on commit 573e1c2

Please sign in to comment.
You can’t perform that action at this time.