parent
baf739658e
commit
96cce88aed
|
|
@ -84,7 +84,6 @@ func (s *Server) htmlAttachments(w http.ResponseWriter, urlPath string) {
|
|||
dir := path.Dir(urlPath)
|
||||
f := "." + path.Base(urlPath) + ".attachments"
|
||||
_, files, _ := s.Notes.Dir(path.Join(dir, f))
|
||||
// TODO replace <a with <a download UNLESS img, then... hrm
|
||||
form := fmt.Sprintf(`
|
||||
<form enctype="multipart/form-data" action="/attach/%s" method="post">
|
||||
<input type="file" name="file" required/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue