# Webhooks Multi File Base64

**URL:** <https://community.gravityforms.com/t/webhooks-multi-file-base64/15084>\
**Category:** Get Help\
**Tags:** file-uploads, gform\_webhooks\_request\_data, multi-file-uploads, base64\_encode\
**Created:** [May 7, 2023, 7:59am UTC](https://community.gravityforms.com/t/webhooks-multi-file-base64/15084 "2023-05-07T07:59:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilberto.florez](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@gilberto.florez](https://community.gravityforms.com/u/gilberto.florez)\
**Post date:** [May 7, 2023, 7:59am UTC](https://community.gravityforms.com/t/webhooks-multi-file-base64/15084/1 "2023-05-07T07:59:35Z")

</div>

Hello,

I’ve been checking how to send the base64 encode files using webhooks and it’s quite interesting ( [Connecting Webhooks to accelo API for attachments](https://community.gravityforms.com/t/connecting-webhooks-to-accelo-api-for-attachments/8379/2)). My question is, is it possible to send the base64 information in the case of multiple files? If it’s so, how would be the code?

Best regards and thank you very much in advance

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 7, 2023, 2:59pm UTC](https://community.gravityforms.com/t/webhooks-multi-file-base64/15084/2 "2023-05-07T14:59:04Z")

</div>

Hi Gilberto. Please see this previous topic for a discussion of how to do that:

> [@Forward form including upload files to a 3rd party via Gravity Form Webhooks plugin](https://community.gravityforms.com/t/forward-form-including-upload-files-to-a-3rd-party-via-gravity-form-webhooks-plugin/14293/3):
>
> Hi, I have done something like this: add\_filter( 'gform\_webhooks\_request\_data', 'custom\_gform\_webhooks\_modify\_data', 10, 4 ); function custom\_gform\_webhooks\_modify\_data( $request\_data, $feed, $entry, $form ){ if ( rgar( $form, 'title' ) !== 'Test' ) { return $request\_data; } $cv\_file\_path = GFFormsModel::get\_physical\_file\_path( rgar( $entry, 6 ) ); $il\_file\_path = GFFormsModel::get\_physical\_file\_path( rgar( $entry, 5 ) ); $request\_data['test'] = base64\_encode( file\_get\_contents…

Or follow this tag:  
[https://community.gravityforms.com/tag/base64\_encode](https://community.gravityforms.com/tag/base64_encode)

---

<div class="post-metadata">

**Author:** ![gilberto.florez](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@gilberto.florez](https://community.gravityforms.com/u/gilberto.florez)\
**Post date:** [May 7, 2023, 5:55pm UTC](https://community.gravityforms.com/t/webhooks-multi-file-base64/15084/3 "2023-05-07T17:55:08Z")

</div>

Thank you very much for your quick answer Chris!!! 🙂

My understanding of the above post is that the form is using two different single upload files filed? Is that correct? In my case, I’m using a multi file field and I’m not pretty sure that this solution [Connecting Webhooks to accelo API for attachments](https://community.gravityforms.com/t/connecting-webhooks-to-accelo-api-for-attachments/8379/2) is gong to work…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [June 6, 2023, 5:55pm UTC](https://community.gravityforms.com/t/webhooks-multi-file-base64/15084/4 "2023-06-06T17:55:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
