diff options
| author | 2022-10-16 11:08:50 +0200 | |
|---|---|---|
| committer | 2022-10-16 11:08:50 +0200 | |
| commit | 0d79e465e6f01e51c5ddf26b40096e608b506d9b (patch) | |
| tree | 7bb1c46372139afb8795a30a6a8e41897689fa08 /html.c | |
| parent | Replace %host% in greeting.html. (diff) | |
| download | snac2-0d79e465e6f01e51c5ddf26b40096e608b506d9b.tar.gz snac2-0d79e465e6f01e51c5ddf26b40096e608b506d9b.tar.xz snac2-0d79e465e6f01e51c5ddf26b40096e608b506d9b.zip | |
Use multipart/form-data for posts (on the way to supporting uploads).
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -191,12 +191,12 @@ d_char *html_top_controls(snac *snac, d_char *s) | |||
| 191 | "<div class=\"snac-top-controls\">\n" | 191 | "<div class=\"snac-top-controls\">\n" |
| 192 | 192 | ||
| 193 | "<div class=\"snac-note\">\n" | 193 | "<div class=\"snac-note\">\n" |
| 194 | "<form method=\"post\" action=\"%s/admin/note\">\n" | 194 | "<form method=\"post\" action=\"%s/admin/note\" enctype=\"multipart/form-data\">\n" |
| 195 | "<textarea class=\"snac-textarea\" name=\"content\" " | 195 | "<textarea class=\"snac-textarea\" name=\"content\" " |
| 196 | "rows=\"8\" wrap=\"virtual\" required=\"required\"></textarea>\n" | 196 | "rows=\"8\" wrap=\"virtual\" required=\"required\"></textarea>\n" |
| 197 | "<input type=\"hidden\" name=\"in_reply_to\" value=\"\">\n" | 197 | "<input type=\"hidden\" name=\"in_reply_to\" value=\"\">\n" |
| 198 | "<input type=\"submit\" class=\"button\" value=\"%s\">\n" | 198 | "<p><input type=\"file\" name=\"attach\">\n" |
| 199 | "<input type=\"text\" name=\"attach_url\"> %s<p>" | 199 | "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n" |
| 200 | "</form><p>\n" | 200 | "</form><p>\n" |
| 201 | "</div>\n" | 201 | "</div>\n" |
| 202 | 202 | ||
| @@ -244,7 +244,6 @@ d_char *html_top_controls(snac *snac, d_char *s) | |||
| 244 | xs *s1 = xs_fmt(_tmpl, | 244 | xs *s1 = xs_fmt(_tmpl, |
| 245 | snac->actor, | 245 | snac->actor, |
| 246 | L("Post"), | 246 | L("Post"), |
| 247 | L("Image to attach (URL)"), | ||
| 248 | 247 | ||
| 249 | L("More options..."), | 248 | L("More options..."), |
| 250 | 249 | ||