From 96765ec3b16714f47322814738a217111fdadb4b Mon Sep 17 00:00:00 2001 From: Jan Wolff Date: Fri, 12 Sep 2025 10:59:19 +0200 Subject: don't allow upload lifetime configuration for now --- controller/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controller/file.go') 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) -- cgit v1.2.3