Best answer

Posting File Attachments to Webhooks

  • 7 January 2022
  • 2 replies
  • 19 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.files[0])
axios({
method: 'POST',
url: 'https://hooks.zapier.com/hooks/catch/xxxxx/xxxxx/',
data: formData
})

 

icon

Best answer by Troy Tessalone 7 January 2022, 23:54

View original

2 replies

Userlevel 7
Badge +12

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.

Reply