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...

 

2 Replies 2
henlov
Participant

Form submission with custom image url not working anymore

Hi, I'm having similar issues as well, which seems to be due to a recent change. We upload an image to HubSpot that we add to the form via the TICKET.hs_file_upload property, but the attachment link on the ticket that gets created is wrong (the ID in the file preview URL is not the ID of the image). This used to work using signed URL redirects, then around June 23rd it no longer did, without us making any changes on our end.

0 Upvotes
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