How can I forward my form upload via webhook?

Hi everyone,

So, I have a hubspot lead-gen form tied to my “contacts” table. It has an image field. On submission it triggers a hubspot webhook that forwards the submitted form data to my external integration.

All works beautifully but the uploaded image only comes through as a url (hidden behind hubspot login).

Is there any way I can send that uploaded image with my webhook?

I figure if not then I can wait for the webhook to be processed then make an API call from my integration to fetch the file afterwards. Would that be the smarter way to do this? Is there a better way?

Thanks for any advice/experience you might have that points me in the right direction!

Matt

@MattBedford

I believe your second method is appropriate :grinning_face:

@Mike_Eastwood knows a thing or two about things and could have a different opinion, though :smiling_face_with_sunglasses:

Thanks so much, Dennis. Really helpful and I very much appreciate the community spirit. Best,

Matt

Hey Matt,

I haven’t played with files via webhook… does the json have a file id as well as the URL?

If so you could set the file to public, via the Files API, the get the Public URL to display your image (if I understand what you want to do).

I haven’t tried myself, just thinking out loud (silently, via the internet).

Have fun

Mike

p.s. thanks for the mention @dennisedson

Thanks so much, Mike. Really nice to get your take on the options.