summaryrefslogtreecommitdiff
path: root/got/upload.got
diff options
context:
space:
mode:
Diffstat (limited to 'got/upload.got')
-rw-r--r--got/upload.got11
1 files changed, 11 insertions, 0 deletions
diff --git a/got/upload.got b/got/upload.got
new file mode 100644
index 0000000..069d9f8
--- /dev/null
+++ b/got/upload.got
@@ -0,0 +1,11 @@
+<!-- -*- Mode: HTML -*- -->
+<h1>{{.path | html}}</h1>
+<p>Content-Type: {{.ctype | html}}</p>
+<form method="POST" enctype="multipart/form-data">
+ <input type="hidden" name="_method" value="PUT" />
+ <input type="hidden" name="_xsrf_token" value="{{.xsrf_token | html}}">
+ <p>You can't edit this type of file in your browser. But you can
+ upload a new version.</p>
+ <input type="file" name="_body" required=required />
+ <input type="submit" value="Upload" />
+</form>