feat: drag&drop upload, default 1h links, Media-Tool mit Kino-Stub
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user