This commit is contained in:
2026-11-13 21:03:32 -05:00
parent 16642c53f3
commit 91667e3a10
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -252,7 +252,6 @@ func uploadHandler(db *gorm.DB, cfg Config, templates *template.Template) http.H
switch returnType { switch returnType {
// html & maybe xml? cant think of other return types // html & maybe xml? cant think of other return types
case "html": case "html":
log.Println(upload)
w.Header().Set("Content-Type", "text/html; charset=utf-8") w.Header().Set("Content-Type", "text/html; charset=utf-8")
if err := templates.ExecuteTemplate(w, "upload.html", response); err != nil { if err := templates.ExecuteTemplate(w, "upload.html", response); err != nil {
log.Println("render upload page:", err) log.Println("render upload page:", err)
+2 -1
View File
@@ -21,7 +21,8 @@ goals:
- [ ] update last accessed at - [ ] update last accessed at
- use a memory cache and batch commit to database to keep performance - use a memory cache and batch commit to database to keep performance
- [x] add cache control header - [x] add cache control header
- [ ] size based expiry
- exclusions if below a certain size (like 5mb)
- [x] delete content endpoints - [x] delete content endpoints
- [ ] paste page - [ ] paste page
- [ ] return a page for nojs clients, such as on delete or upload - [ ] return a page for nojs clients, such as on delete or upload