upload metadata table on upload page

This commit is contained in:
2026-11-12 21:45:19 -05:00
parent 41aaf5006f
commit 28d0600153
2 changed files with 83 additions and 0 deletions
+58
View File
@@ -23,6 +23,64 @@
{{end}}
</div>
<details>
<summary>upload metadata</summary>
<table class="upload-metadata">
<thead>
<tr>
<th scope="col">key</th>
<th scope="col">value</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">id</th>
<td>{{.ID}}</td>
</tr>
<tr>
<th scope="row">type</th>
<td>{{.Type}}</td>
</tr>
<tr>
<th scope="row">filename</th>
<td>{{.Filename}}</td>
</tr>
<tr>
<th scope="row">mimetype</th>
<td>{{.MIMEType}}</td>
</tr>
<tr>
<th scope="row">size</th>
<td>{{.Size}}</td>
</tr>
<tr>
<th scope="row">sha256</th>
<td>{{.SHA256}}</td>
</tr>
<tr>
<th scope="row">created at</th>
<td>{{.CreatedAt}}</td>
</tr>
<tr>
<th scope="row">expires at</th>
<td>{{if .ExpiresAt}}{{.ExpiresAt}}{{else}}indefinite{{end}}</td>
</tr>
<tr>
<th scope="row">last accessed at</th>
<td>{{.LastAccessedAt}}</td>
</tr>
<tr>
<th scope="row">file extension</th>
<td>{{.FileExtension}}</td>
</tr>
<tr>
<th scope="row">delete token</th>
<td>{{.DeleteToken}}</td>
</tr>
</tbody>
</table>
</details>
<div class="upload-links">
<a href="/{{.ID}}">view raw upload</a>
<!--