feat: drag&drop upload, default 1h links, Media-Tool mit Kino-Stub

This commit is contained in:
2026-06-06 15:35:35 +02:00
parent 2189a5c652
commit 83b6dad9e3
5 changed files with 117 additions and 7 deletions

View File

@@ -166,7 +166,7 @@ function UploadShareManager({ toast }) {
const [logs, setLogs] = useState([]);
const [showCreate, setShowCreate] = useState(false);
const [showLogs, setShowLogs] = useState(false);
const [form, setForm] = useState({ password:'', expires_hours:24, max_size_mb:10 });
const [form, setForm] = useState({ password:'', expires_hours:1, max_size_mb:10 });
const [busy, setBusy] = useState(false);
const [copied, setCopied] = useState(null);
const [sharePws, setSharePws] = useState({}); // {shareId: password} für Passwort-Kopieren
@@ -185,7 +185,7 @@ function UploadShareManager({ toast }) {
try {
const r = await api('/upload-shares', { body: form });
setSharePws(p=>({...p, [r.id]: form.password}));
toast('Upload-Link erstellt ✓'); setShowCreate(false); setForm({password:'',expires_hours:24,max_size_mb:10}); load();
toast('Upload-Link erstellt ✓'); setShowCreate(false); setForm({password:'',expires_hours:1,max_size_mb:10}); load();
} catch(e) { toast(e.message,'error'); }
setBusy(false);
};