Simple file upload and browsing

This commit is contained in:
kamkow1
2025-06-21 02:05:25 +02:00
parent c5f009654c
commit 622b98f40a
7 changed files with 496 additions and 7 deletions

18
tmpls/browse.html Normal file
View File

@ -0,0 +1,18 @@
<html>
<head>
<title>Lair Tremporary Storage</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="/etc/simple.css" />
</head>
<body>
<table>
{{range .}}
<tr>
<td><a href="/store/{{.FileName}}">{{.ReadableName}}</a></td>
<td><span>{{.Perm}}</span></td>
<td><span>{{.Modtime}}</span></td>
</tr>
{{end}}
</table>
</body>
</html>