todooo
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user