todo
parent
d408229ba9
commit
014076dd06
|
|
@ -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/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue