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];