]> code.octet-stream.net Git - broadcaster/blob - templates/files.html
Allow web user to cancel transmission in progress
[broadcaster] / templates / files.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Broadcaster</title>
7 </head>
8 <body>
9 <main>
10 <h1>Files! List</h1>
11 <ul>
12 {{range .Files}}
13 <li><b>{{.Name}}</b><form action="/file/delete" method="POST"><input type="hidden" name="filename" value="{{.Name}}"><input type="submit" value="Delete"></form></li>
14 {{end}}
15 </ul>
16 <h2>Upload New File</h2>
17 <p>
18 <form action="/file/upload" method="post" enctype="multipart/form-data">
19 <input type="file" name="file">
20 <input type="submit" value="Upload">
21 </form>
22 </p>
23 </main>
24 </body>
25 </html>