mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Handle missing binary metadata in download urls (#5242)
This commit is contained in:
committed by
GitHub
parent
ac460aa841
commit
21579a8a2a
@@ -1206,7 +1206,7 @@ export default mixins(externalHooks, genericHelpers, nodeHelpers, pinData).exten
|
||||
const { id, data, fileName, fileExtension, mimeType } = this.binaryData[index][key];
|
||||
|
||||
if (id) {
|
||||
const url = this.restApi().getBinaryUrl(id, 'download');
|
||||
const url = this.restApi().getBinaryUrl(id, 'download', fileName, mimeType);
|
||||
saveAs(url, [fileName, fileExtension].join('.'));
|
||||
return;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user