Skip to main content
Best answer

Posting File Attachments to Webhooks

  • 7 January 2022
  • 2 replies
  • 2089 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
})

 

Best answer by Troy Tessalone

Hi @jadamconnor 

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

 

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

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30456 replies
  • Answer
  • January 7, 2022

Hi @jadamconnor 

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

 


  • Author
  • New
  • 1 reply
  • January 7, 2022

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.