added delete

This commit is contained in:
felix
2026-09-27 17:10:46 +02:00
parent ac05a5ed2b
commit 87c3abd2a1
5 changed files with 88 additions and 4 deletions

View File

@@ -2,9 +2,11 @@ import Component from '@glimmer/component';
// One row of the bijlagen overview: what it is, and where to get it.
export default class ChatAttachment extends Component {
// The file service serves every bijlage at /files/<uuid>/download.
// The file service serves every bijlage at /files/<uuid>/download. It
// names the download after the physical file unless ?name= says otherwise.
get href() {
return `/files/${this.uuid}/download`;
const name = encodeURIComponent(this.args.document.filename || '');
return `/files/${this.uuid}/download?name=${name}`;
}
get uuid() {