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:
committed by
GitHub
parent
80e07f86ac
commit
e225c3190e
@@ -201,13 +201,8 @@ export const restApi = Vue.extend({
|
||||
},
|
||||
|
||||
// Binary data
|
||||
getBinaryBufferString: (dataPath: string): Promise<string> => {
|
||||
return self.restApi().makeRestApiRequest('GET', `/data/${dataPath}`);
|
||||
},
|
||||
|
||||
getBinaryUrl: (dataPath: string): string => {
|
||||
return self.rootStore.getRestApiContext.baseUrl + `/data/${dataPath}`;
|
||||
},
|
||||
getBinaryUrl: (dataPath, mode): string =>
|
||||
self.rootStore.getRestApiContext.baseUrl + `/data/${dataPath}?mode=${mode}`,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user