summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-16 11:08:50 +0200
committerdefault <nobody@localhost>2022-10-16 11:08:50 +0200
commit0d79e465e6f01e51c5ddf26b40096e608b506d9b (patch)
tree7bb1c46372139afb8795a30a6a8e41897689fa08 /html.c
parentc5070941cf90a7f381211eb6cdfab466f5ad2048 (diff)
Use multipart/form-data for posts (on the way to supporting uploads).
Diffstat (limited to 'html.c')
-rw-r--r--html.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/html.c b/html.c
index 5673062..f4ecb8a 100644
--- a/html.c
+++ b/html.c
@@ -191,12 +191,12 @@ d_char *html_top_controls(snac *snac, d_char *s)
"<div class=\"snac-top-controls\">\n"
"<div class=\"snac-note\">\n"
- "<form method=\"post\" action=\"%s/admin/note\">\n"
+ "<form method=\"post\" action=\"%s/admin/note\" enctype=\"multipart/form-data\">\n"
"<textarea class=\"snac-textarea\" name=\"content\" "
"rows=\"8\" wrap=\"virtual\" required=\"required\"></textarea>\n"
"<input type=\"hidden\" name=\"in_reply_to\" value=\"\">\n"
- "<input type=\"submit\" class=\"button\" value=\"%s\">\n"
- "<input type=\"text\" name=\"attach_url\"> %s<p>"
+ "<p><input type=\"file\" name=\"attach\">\n"
+ "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
"</form><p>\n"
"</div>\n"
@@ -244,7 +244,6 @@ d_char *html_top_controls(snac *snac, d_char *s)
xs *s1 = xs_fmt(_tmpl,
snac->actor,
L("Post"),
- L("Image to attach (URL)"),
L("More options..."),