APIs & Integrations

nikolajovanovic
Member

Upload files via Form API

SOLVE

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

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Upload files via Form API

SOLVE

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.

Isaac Takushi

Associate Certification Manager

View solution in original post

1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Upload files via Form API

SOLVE

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.

Isaac Takushi

Associate Certification Manager