Skip to content
Snippets Groups Projects

Resolve "Fix download of html objects"

Merged Daniel Göbel requested to merge bugfix/189-fix-download-of-html-objects into main
3 files
+ 32
34
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 1
3
@@ -60,9 +60,7 @@ export const useS3ObjectStore = defineStore("s3objects", {
const command = new GetObjectCommand({
Bucket: bucketName,
Key: key,
ResponseContentDisposition: download
? `attachment; filename=${keySplit[keySplit.length - 1]}`
: "inline",
ResponseContentDisposition: `${download ? "attachment" : "inline"}; filename=${keySplit[keySplit.length - 1]}`,
});
return getSignedUrl(this.client, command, {
expiresIn: 30,
Loading