fix: correct open/download link behaviour

This commit is contained in:
Asraye
2025-09-04 04:22:20 +10:00
committed by GitHub
parent 59226959ba
commit f22e6fa9fe

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);