fix: View option for binary-data shouldn't download the file on Chrome/Edge (#4995)

* delete unused code

* fix: Do not set the `Content-Disposition` header when viewing binary files

* remove the duplicate styles.

these already exist in BinaryDataDisplayEmbed.vue
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-12-21 13:30:51 +01:00
committed by GitHub
parent 80e07f86ac
commit e225c3190e
6 changed files with 8 additions and 26 deletions

View File

@@ -56,7 +56,7 @@ export default mixins(restApi).extend({
}
} else {
try {
const binaryUrl = this.restApi().getBinaryUrl(id);
const binaryUrl = this.restApi().getBinaryUrl(id, 'view');
if (isJSONData) {
this.jsonData = await (await fetch(binaryUrl)).json();
} else {