diff --git a/handlers.go b/handlers.go index f655a29..edcf143 100644 --- a/handlers.go +++ b/handlers.go @@ -252,7 +252,6 @@ func uploadHandler(db *gorm.DB, cfg Config, templates *template.Template) http.H switch returnType { // html & maybe xml? cant think of other return types case "html": - log.Println(upload) w.Header().Set("Content-Type", "text/html; charset=utf-8") if err := templates.ExecuteTemplate(w, "upload.html", response); err != nil { log.Println("render upload page:", err) diff --git a/readme.md b/readme.md index cfe4934..05ff8ac 100644 --- a/readme.md +++ b/readme.md @@ -21,7 +21,8 @@ goals: - [ ] update last accessed at - use a memory cache and batch commit to database to keep performance - [x] add cache control header - +- [ ] size based expiry + - exclusions if below a certain size (like 5mb) - [x] delete content endpoints - [ ] paste page - [ ] return a page for nojs clients, such as on delete or upload