Best answer

Posting File Attachments to Webhooks

  • 7 January 2022
  • 2 replies
  • 1490 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

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

2 replies

Userlevel 7
Badge +14

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.