summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2020-06-06 18:59:03 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2020-06-06 19:03:31 -0400
commit8e89d43bdf35b2a1f69f3f7e3d87c57fb1e3f58a (patch)
treee7152a060dce2ef8a1dbf41cc6202339c5337a97 /templates
parent0f0d4477a4eab8ec0b99c134154ce0fedb4d6400 (diff)
Implement file uploading.
Diffstat (limited to 'templates')
-rw-r--r--templates/upload.hbs22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/upload.hbs b/templates/upload.hbs
new file mode 100644
index 0000000..ca57d4f
--- /dev/null
+++ b/templates/upload.hbs
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>бирка-тян - Upload File</title>
+ <link rel="stylesheet" type="text/css" href="/public/css/style.css">
+ <meta charset="UTF-8">
+</head>
+<body>
+ <header>
+ <h1><a href="/">бирка-тян</a></h1>
+ </header>
+ <main>
+ <h2>Upload a file</h2>
+ <form id="upload" method="post" action="/api/posts" enctype="multipart/form-data">
+ <input id="image" name="image" type="file" accept="image/*">
+ <label for="tags">Tags:</label>
+ <input id="tags" name="tags" type="text">
+ <button type="submit">Upload</button>
+ </form>
+ </main>
+</body>
+</html>