summaryrefslogtreecommitdiff
path: root/controller/file.go
diff options
context:
space:
mode:
authorJan Wolff <janw@mailbox.org>2025-09-12 10:59:19 +0200
committerJan Wolff <janw@mailbox.org>2025-09-12 10:59:19 +0200
commit96765ec3b16714f47322814738a217111fdadb4b (patch)
tree9d0e1aba05d94e52d9b677f609503dcc64a9f766 /controller/file.go
parent154abc0c5016635ad3af49a0772a97fbdc34bedb (diff)
don't allow upload lifetime configuration for now
Diffstat (limited to 'controller/file.go')
-rw-r--r--controller/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/file.go b/controller/file.go
index 7aed104..275cc15 100644
--- a/controller/file.go
+++ b/controller/file.go
@@ -41,7 +41,7 @@ func (app App) FilePost(res http.ResponseWriter, req *http.Request) {
Protected: protected,
Filename: formFileHeader.Filename,
Data: fileData,
- AvailableUntil: time.Now().Add(time.Hour * 2),
+ AvailableUntil: time.Now().Add(time.Hour * 24),
}
key, err := app.storage.Put(file)