Upload files via Form API

forms

#1

Hello,

I was just testing file upload via the form. It worked, the file was successfully uploaded, my contact property for the file was updated, I got CDN link to that file and it was hidden in File Manager as stated in your documentation.

However, how can I upload a file the same way using Form API?

Thanks in advance,
Nikola


#2

Hi @nikolajovanovic,

As David outlines in this post...

...you can pass a file URL through the Forms API, but it won't automatically upload the file to the HubSpot file manager like it does when you manually submit a form.

That said, you can upload hidden files to the file manager through this method.


#3