Skip to main content
Best answer

Posting File Attachments to Webhooks

  • 7 January 2022
  • 2 replies
  • 1900 views

There have been a few posts here that have gone unanswered in reference to whether file attachments can be posted to webhooks. I’m using Axios. The key is the formData:

 

formData.append('fileName', e.target.filesi0])
axios({
method: 'POST',
url: 'https://hooks.zapier.com/hooks/catch/xxxxx/xxxxx/',
data: formData
})

 

Hi @jadamconnor 

Try using the Webhooks - POST action which has a File field.

 


Oh, wow. Yeah, my example is working, but knowing about this would’ve saved me a lot of headache. I didn’t even know about all the Webhook actions.