Best answer

How to work with files?

  • 5 January 2021
  • 1 reply
  • 366 views

Userlevel 1

I am trying to develop a trigger that has a file as one of the output fields. When I use my app with other apps like uploading a file to google drive or sending an email in outlook with a file attachment, I get this error from testing the action.

Stack trace: Error: Got 400 - <?xml version="1.0" encoding="UTF-8"?> <Error><Code>MalformedPOSTRequest</Code><Message>The body of your POST request is not well-formed multipart/form-data.</Message>

I followed the example code from this repo - https://github.com/zapier/zapier-platform-example-app-files

Additionally, the response from my API on the Monitoring page shows a 200 code. There are not many more details than this so I am unsure what the problem is or how to find it.

icon

Best answer by kyler 6 January 2021, 16:21

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 1

Figured out that it was trying to consume the entire request at once. I was able to solve this by setting “raw: true” in the request options.