fix(editor): Fix viewing and downloading of binary data (#6218)
NODE-525
This commit is contained in:
committed by
GitHub
parent
d5e62ff096
commit
b9779c3293
@@ -1227,7 +1227,12 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
|
||||
return makeRestApiRequest(rootStore.getRestApiContext, 'GET', '/eventbus/execution/' + id);
|
||||
},
|
||||
// Binary data
|
||||
async getBinaryUrl(dataPath, mode, fileName, mimeType): string {
|
||||
getBinaryUrl(
|
||||
dataPath: string,
|
||||
mode: 'view' | 'download',
|
||||
fileName: string,
|
||||
mimeType: string,
|
||||
): string {
|
||||
const rootStore = useRootStore();
|
||||
let restUrl = rootStore.getRestUrl;
|
||||
if (restUrl.startsWith('/')) restUrl = window.location.origin + restUrl;
|
||||
|
||||
Reference in New Issue
Block a user