Lead Capture Tools

CReyes3
Member

Gravity Form to HubSpot - More than 1 File Upload.

When my Gravity Form's File Upload field accepts more than 1 file.

The links for the files are shown in only 1 value in the properties separated by a comma.

I would like them to be shown as separate values.

Example of Issue:
File Upload Property:
Value 1: https://site.com/img1.jpg,%20https://site.com/img2.jpg

Expected Outcome:
File Upload Propery:
Value1: https://wesbite.com/image1.jpg
Value2: https://wesbite.com/image2.jpg

How can I configure it so that if multiple files are uploaded, each file is assigned a separate file upload value in the contact's property section?

Thanks!

0 Upvotes
4 Replies 4
Markestac
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Gravity Form to HubSpot - More than 1 File Upload.

Hi @CReyes3,

In HubSpot, you'll need to adjust how Gravity Forms processes and sends the data to HubSpot. By default, when multiple files are uploaded, they are sent as a comma-separated list in a single field. To split them into separate values (like individual field values in HubSpot), you can consider the following options:

Create Custom Fields in HubSpot:
  • In HubSpot , create separate custom properties for each file (e.g., File Upload 1, File Upload 2, File Upload 3), depending on how many files you expect to receive.
Map to HubSpot Fields:
  • In your Gravity Forms HubSpot integration (via the Gravity Forms HubSpot Add-On), ensure that you map the fields correctly:
    • Field 1 → HubSpot File Upload 1
    • Field 2 → HubSpot File Upload 2

Talk to Our HubSpot Expert

Marketing Automation Agency | RevOps & CRM Consultant

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
CReyes3
Member

Gravity Form to HubSpot - More than 1 File Upload.

Hi @Markestac,

Thank you for the suggestion! My only concern with this solution is that it would require adding two separate fields to our Gravity Form for file uploads. Currently, the existing File Upload field supports multiple file uploads. Is there no alternative solution to have the files split when they are sent to HubSpot? I appreciate your quick response. Thank you!

0 Upvotes
Markestac
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Gravity Form to HubSpot - More than 1 File Upload.

Hey @CReyes3,


The existing File Upload field in Gravity Forms supports multiple file uploads, I can offer an alternative solution to keep everything within a single field while ensuring the files are properly split when sent to HubSpot.
One way to achieve this is by using custom code or a third-party integration that processes the uploaded files before they are sent to HubSpot. The idea is to split the multiple files from the single upload field into individual file fields before they are transferred. This can be done with some custom development that:
  1. Detects and splits the files from the Gravity Forms upload field.
  2. Sends each file to a unique HubSpot property or as separate attachments.
Alternatively, you could use middleware like Zapier or Integromat (now Make) to create a more flexible solution for routing the files into HubSpot.

Talk to Our HubSpot Expert

Marketing Automation Agency | RevOps & CRM Consultant

Did my post help answer your query? Help the community by marking it as a solution.

CReyes3
Member

Gravity Form to HubSpot - More than 1 File Upload.

Hi @Markestac,

Thank you for the detailed explanation! I’m particularly interested in the custom development solution you mentioned for splitting files from the Gravity Forms upload field and sending each to unique HubSpot properties or as separate attachments.

Could you please elaborate on how this could be implemented, ideally with some example code or steps to achieve this without relying on middleware like Zapier or Integromat?

Your expertise and guidance would be greatly appreciated!

0 Upvotes