fix: Share-URL-Pfad korrigiert, PW 12 Stellen+Sonderzeichen sichtbar, Standard 1h, aktive Links in Dateiliste
This commit is contained in:
@@ -2919,7 +2919,7 @@ function PublicFileShare({ token }) {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
fetch('/api/public/file-share/public/' + token)
|
||||
fetch('/api/public/file-share/' + token)
|
||||
.then(async r => {
|
||||
const d = await r.json();
|
||||
if (!r.ok) { setErrMsg(d.error || 'Link ungültig'); setPhase('error'); return; }
|
||||
@@ -2931,7 +2931,7 @@ function PublicFileShare({ token }) {
|
||||
}, [token]);
|
||||
|
||||
async function loadFolder(pw2) {
|
||||
const res = await fetch('/api/public/file-share/public/' + token + '/folder', {
|
||||
const res = await fetch('/api/public/file-share/' + token + '/folder', {
|
||||
method:'POST', headers:{'Content-Type':'application/json'},
|
||||
body: JSON.stringify({ password: pw2 }),
|
||||
});
|
||||
@@ -2943,7 +2943,7 @@ function PublicFileShare({ token }) {
|
||||
|
||||
async function handlePw() {
|
||||
if (!pw.trim()) return;
|
||||
const res = await fetch('/api/public/file-share/public/' + token + (info?.is_folder ? '/folder' : '/download'), {
|
||||
const res = await fetch('/api/public/file-share/' + token + (info?.is_folder ? '/folder' : '/download'), {
|
||||
method:'POST', headers:{'Content-Type':'application/json'},
|
||||
body: JSON.stringify({ password: pw }),
|
||||
});
|
||||
@@ -2959,7 +2959,7 @@ function PublicFileShare({ token }) {
|
||||
setDlLoading(fileId || 'single');
|
||||
try {
|
||||
const res = await fetch(
|
||||
'/api/public/file-share/public/' + token + (fileId ? '/folder/' + fileId : '/download'),
|
||||
'/api/public/file-share/' + token + (fileId ? '/folder/' + fileId : '/download'),
|
||||
{ method:'POST', headers:{'Content-Type':'application/json'}, body: JSON.stringify({ password }) }
|
||||
);
|
||||
if (!res.ok) { const d = await res.json(); setErrMsg(d.error); return; }
|
||||
|
||||
Reference in New Issue
Block a user