n8n-nodes-binary-to-url 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -212,7 +212,9 @@ async function handleUpload(context, items) {
|
|
|
212
212
|
const workflow = context.getWorkflow();
|
|
213
213
|
const workflowId = workflow.id;
|
|
214
214
|
const baseUrl = context.getInstanceBaseUrl();
|
|
215
|
-
|
|
215
|
+
// Remove trailing slash and ensure clean URL
|
|
216
|
+
const cleanBaseUrl = baseUrl.replace(/\/+$/, '');
|
|
217
|
+
const webhookUrl = `${cleanBaseUrl}/webhook/${workflowId}/file/:fileKey`;
|
|
216
218
|
const returnData = [];
|
|
217
219
|
for (const item of items) {
|
|
218
220
|
const binaryData = item.binary?.[binaryPropertyName];
|
package/package.json
CHANGED