APIs & Integrations

henlov
Participant

API form submission with file upload broken?

Hi, I'm wondering how to add private images uploaded to HubSpot as ticket attachments via a form submitted through the API?

It used to work sending signed URLs in the TICKET.hs_file_upload field, but no longer does. Now the attachment link references a broken file created in the "form-uploads" folder, instead of the actual image uploaded to a different folder like it did before. This started happening on June 23.

Is this a permanent change or an issue that will be resolved?

Thanks!

0 Upvotes
2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

API form submission with file upload broken?

Hi, @henlov, can you provide any more details on exactly how it worked for you in the past? This can help the community better understand root causes and how you can approach troubleshooting this issue.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
henlov
Participant

API form submission with file upload broken?

Hi @Jaycee_Lewis,

We used to upload an image to a folder in the HubSpot file manager through the API, then get a signed URL using this endpoint. When submitting the form immediately after, we sent that URL in the TICKET.hs_file_upload field, and the image would be added as an attachment to the ticket created by the form. The ticket would link to a preview of the image in the file manager folder. On June 23, without us making any changes on our end, the preview links started pointing to a different file, one seemingly created by HubSpot in another folder.


We have now started uploading the image externally from HubSpot, and when we send that URL in the upload field it works somewhat like before, except the filenames are prefixed by "[UUID]-TICKET.hs_file_upload-", which doesn't look great.


Looking at this post from two months ago, it seems we're not the only ones to notice a change in behaviour when it comes to submitting images by form.

0 Upvotes