From f0a83e5ca5fc90f73411005c7f21bc0dd0eaef02 Mon Sep 17 00:00:00 2001 From: MedAliMarz Date: Wed, 3 Mar 2021 08:20:24 +0100 Subject: [PATCH] :bug: Fix parsing response issue when uploading file (Dropbox) (#1502) --- packages/nodes-base/nodes/Dropbox/Dropbox.node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts b/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts index 1c7efac402..790b181261 100644 --- a/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts +++ b/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts @@ -522,9 +522,9 @@ export class Dropbox implements INodeType { endpoint = 'https://content.dropboxapi.com/2/files/upload'; - if (this.getNodeParameter('binaryData', i) === true) { + options = { json: false }; - options = { json: false }; + if (this.getNodeParameter('binaryData', i) === true) { // Is binary file to upload const item = items[i];