APIs & Integrations

henrikra
Member

Form submission with custom image url not working anymore

Hello

 

I have my own custom form which submits the data to `/submissions/v3/integration/submit/:portalId/:formGuid`. My form has also file field type.

 

I have sent to data to the HubSpot form submission endpoint like this

 

{
  fields: [
    {
      name: 'firstname',
      value: data.formData.firstName,
    },
    {
      name: 'lastname',
      value: data.formData.lastName,
    },
    {
      name: 'my_image_field',
      // notice custom url here
      value: 'https://mydomain.com/image.jpg',
    },
  ],
}

 

But nowadays when I go to see my submission to the dashboard here: https://app.hubspot.com/forms/:portalId/:formGuid/submissions/ the link is formatted in correctly. It is always formatted like `https://api-na1.hubspot.com/form-integrations/v1/uploaded-files/my-custom-stuff-here&conversionId=someId&filename=someFileName.unknown` 

 

So looks like the api does not put the custom url as is to the result and instead assumes that the file was uploaded to HubSpot even though it wasn't.

 

Can you guys confirm this was changed and is it a bug or not? Because at least one year ago this was approach was suggested by your developers as you can see here: https://community.hubspot.com/t5/APIs-Integrations/How-to-create-signed-url-redirect-for-uploaded-pr...

 

0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

Form submission with custom image url not working anymore

Hey, @henrikra. Thanks for reaching out. Let's see if the community champion who helped you originally has any other insight — hey @tjoyce, do you have any additional thoughts here? This looks to be a follow-up to a solution you offered in this post.

 

I'll add any additional information I find here as well.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes