fix: correct open/download link behaviour

This commit is contained in:
Asraye
2025-09-04 04:23:09 +10:00
committed by GitHub
parent 9d82873d2a
commit 33e686ab1b

View File

@@ -26,8 +26,8 @@ export default function AttachmentActions({ attachment }: Props) {
const { filename, metadata, size } = attachment;
const url = client.generateFileURL(attachment);
const open_url = `${url}/${filename}`;
const download_url = url;
const open_url = url;
const download_url = `${url}/${filename}`;
const filesize = determineFileSize(size);