forked from abner/for-legacy-web
fix: remove /download from attachments (#1067)
This commit is contained in:
@@ -27,7 +27,7 @@ export default function AttachmentActions({ attachment }: Props) {
|
||||
|
||||
const url = client.generateFileURL(attachment);
|
||||
const open_url = `${url}/${filename}`;
|
||||
const download_url = url?.replace("attachments", "attachments/download");
|
||||
const download_url = url;
|
||||
|
||||
const filesize = determineFileSize(size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user