tiny 88x31 lexicon for atproto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

encode as multipart

+1 -2
-1
handler/upload.go
··· 22 22 } 23 23 err := r.ParseMultipartForm(1 << 21) 24 24 if err != nil { 25 - log.Println(err) 26 25 http.Error(w, "form failed to parse", http.StatusBadRequest) 27 26 return 28 27 }
+1 -1
tmpl/upload.html
··· 1 1 {{define "content"}} 2 - <form action="/upload" method="POST"> 2 + <form action="/upload" method="POST" enctype="multipart/form-data"> 3 3 <div><input type="file" name="button" value="select file" accept="image/png, image/jpg, image/gif"/></div> 4 4 <div><input type="text" name="alt" placeholder="alt text"/></div> 5 5 <div><input type="text" name="href" placeholder="link"/></div>