Fix bugs: office auth, PDF worker, sidebar pins, direct downloads
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m0s

This commit is contained in:
Elijah 2026-05-31 21:16:17 -07:00
parent e88243f097
commit bfe55e2bfc
6 changed files with 74 additions and 32 deletions

View file

@ -67,6 +67,7 @@ export default function FilePreview({ file, onClose, downloadToken }: FilePrevie
const previewType = getPreviewType(file);
const downloadUrl = downloadToken ? api.getDownloadUrl(file.path, downloadToken) : '';
const forceDownloadUrl = downloadToken ? api.getDownloadUrl(file.path, downloadToken, true) : '';
return (
<AnimatePresence>
@ -103,7 +104,7 @@ export default function FilePreview({ file, onClose, downloadToken }: FilePrevie
</div>
<div className="flex items-center gap-2 shrink-0">
<a
href={downloadUrl}
href={forceDownloadUrl}
download={file.name}
target="_blank"
rel="noreferrer"