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
+25
View File
@@ -197,3 +197,28 @@ body.dragging::after {
font-size: 1.5rem;
pointer-events: none;
}
.upload-metadata {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
}
.upload-metadata th,
.upload-metadata td {
padding: 8px 0;
border-bottom: 1px solid var(--border);
text-align: left;
vertical-align: top;
overflow-wrap: anywhere;
}
.upload-metadata th:first-child {
width: 20%;
padding-right: 16px;
}
.upload-metadata th[scope="row"] {
color: var(--text-muted);
font-weight: bold;
}
+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>
<!--