master
Bel LaPointe 2021-02-25 16:43:57 -06:00
parent d408229ba9
commit 014076dd06
1 changed files with 1 additions and 2 deletions

View File

@ -83,8 +83,7 @@ func (s *Server) htmlAttachments(w http.ResponseWriter, urlPath string) {
dir := path.Dir(urlPath) dir := path.Dir(urlPath)
f := "." + path.Base(urlPath) + ".attachments" f := "." + path.Base(urlPath) + ".attachments"
_, files, _ := s.Notes.Dir(path.Join(dir, f)) _, files, _ := s.Notes.Dir(path.Join(dir, f))
//<!-- TODO READONELY --> // TODO: direct DL via link
//style="min-width: 2em; text-align: center; padding: 0; margin-top: 0; margin-bottom: 0;"/>
form := fmt.Sprintf(` form := fmt.Sprintf(`
<form enctype="multipart/form-data" action="/attach/%s" method="post"> <form enctype="multipart/form-data" action="/attach/%s" method="post">
<input type="file" name="file" required/> <input type="file" name="file" required/>