feat: improve upload admin workflow

Add users.is_admin SQLite migration for promoted admins.

Support curl PUT request uploads, save uploads into admin file-manager paths, default 25 GiB uploads, tabbed UI, and local dev preview.
This commit is contained in:
Ludwig Lehnert
2026-06-18 17:09:07 +00:00
parent 61f10fd994
commit a2b6054440
19 changed files with 1148 additions and 396 deletions

View File

@@ -75,7 +75,7 @@ function errorResponse(request, message, status = 400) {
return new NextResponse(null, {
status: 303,
headers: {
location: dashboardHref({ error: message }),
location: dashboardHref({ tab: 'upload', error: message }),
},
});
}
@@ -84,7 +84,7 @@ function errorResponse(request, message, status = 400) {
}
function successResponse(request, message) {
const redirectPath = dashboardHref({ success: message });
const redirectPath = dashboardHref({ tab: 'upload', success: message });
if (expectsHtml(request)) {
return new NextResponse(null, {
status: 303,