Add screenshot upload and change form method to POST.

This commit is contained in:
tastytea 2020-06-29 21:09:48 +02:00
parent 8278e3cbff
commit aefbb4a26d
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,7 @@
<p>This is a prototype for FediBlock, a central blocklist for the Fediverse.</p>
<h2>Form</h2>
<form action="/add" method="get">
<form method="post" action="/add" enctype="multipart/form-data">
<label for="instance">Instance:</label>
<input type="text" id="instance" name="instance" placeholder="example.com" autofocus required><br>
@ -41,6 +41,9 @@
<input type="url" id="receipts" name="receipts" placeholder="https://example.com/@user/1234567890" required>
<input type="button" id="add_receipt" value="" disabled><br>
<label for="screenshot">Screenshot:</label>
<input type="file" id="screenshot" name="screenshot"><span>(optional)</span><br>
<label for="description">Description:</label><br>
<textarea id="description" name="description" cols="80" rows="20" required></textarea><br>