You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

sr_c's avatar
sr_c
Explorer | Level 3
2 years ago

save_url throws error "request body: could not decode input as JSON"

Hi I am trying to upload files (pictures with .jpg extension) to my dropbox account (to a specific app folder). I am using Airtable scripting (Javascript) extension to upload files from Airtable  (...
  • Здравко's avatar
    2 years ago

    sr_c wrote:
    ...
    },
    data: filedata
    }
    ...

    sr_c, When you are preparing a request body with appropriate data, you have to set those data. What actually is going on here? 🤔 You have already prepared request body (that you named as 'filedata' - incorrect name and probably confusing)! In this context instead of setting 'data', you have to set 'body'. 😉 Be more careful!

    Hope this helps.