]> code.octet-stream.net Git - broadcaster/blobdiff - server/templates/files.html
Simplify package names
[broadcaster] / server / templates / files.html
diff --git a/server/templates/files.html b/server/templates/files.html
new file mode 100644 (file)
index 0000000..c86c6ce
--- /dev/null
@@ -0,0 +1,15 @@
+
+      <h1>Files! List</h1>
+      <p>All files can be downloaded from the <a href="/file-downloads/">public file listing</a>.</p>
+      <ul>
+      {{range .Files}}
+        <li><b>{{.Name}}</b><form action="/files/delete" method="POST"><input type="hidden" name="filename" value="{{.Name}}"><input type="submit" value="Delete"></form></li>
+      {{end}}
+      </ul>
+      <h2>Upload New File</h2>
+      <p>
+      <form action="/files/upload" method="post" enctype="multipart/form-data">
+        <input type="file" name="file">
+        <input type="submit" value="Upload">
+      </form>
+      </p>