# Form API File field

**URL:** <https://community.hubspot.com/t/form-api-file-field/11817>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [November 2, 2016, 3:51pm UTC](https://community.hubspot.com/t/form-api-file-field/11817 "2016-11-02T15:51:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 2, 2016, 3:51pm UTC](https://community.hubspot.com/t/form-api-file-field/11817/1 "2016-11-02T15:51:51Z")

</div>

Hi,

currently I am trying to submit form data through your Form API. My form contains a file field and although I was able to send simple text data, I can´t find any examples how to submit the data of my file field when submitting the form.

best regards and thanks for your help.

---

<div class="post-metadata">

**Author:** ![Dadams](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dadams/32/21752_2.png) [@Dadams](https://community.hubspot.com/u/Dadams)\
**Post date:** [November 2, 2016, 5:19pm UTC](https://community.hubspot.com/t/form-api-file-field/11817/2 "2016-11-02T17:19:34Z")

</div>

Hi [@andreas.tinocolobo](https://community.hubspot.com/u/andreas.tinocolobo)

File upload properties are text properties, and they’re designed to store the URL of a file that’s uploaded to some storage platform. The property itself cannot store an actual file, so if you’re using an upload property in a custom form, you’d need to upload the file separately, and then store a URL that could be used to access that file in the actual form field being sent to HubSpot.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 11, 2016, 9:19am UTC](https://community.hubspot.com/t/form-api-file-field/11817/3 "2016-11-11T09:19:28Z")

</div>

Thanks for your reply, is there any way to get a public URL after uploading a file through the COS File API ([http://developers.hubspot.com/docs/methods/files/post\_files](http://developers.hubspot.com/docs/methods/files/post_files))

Iam aiming to add a custom file field to a form but would like to host the actual file also on hubspot and make it accessible somehow (embed into another website).

BR

---

<div class="post-metadata">

**Author:** ![Dadams](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dadams/32/21752_2.png) [@Dadams](https://community.hubspot.com/u/Dadams)\
**Post date:** [November 11, 2016, 3:17pm UTC](https://community.hubspot.com/t/form-api-file-field/11817/4 "2016-11-11T15:17:37Z")

</div>

[@andreas.tinocolobo](https://community.hubspot.com/u/andreas.tinocolobo) when you upload a file to the file manager, the response will contain the JSON data for the new file (the same thing you’d get from [this endpoint](http://developers.hubspot.com/docs/methods/files/get_files_file_id)). That response will include a `url`, which is the URL of the file.

Keep in mind that files in the file manager would be accessible by anyone with the URL, so it should not be used for files with any type of sensitive information.

---

<div class="post-metadata">

**Author:** ![FAli054](https://avatars.discourse-cdn.com/v4/letter/f/85f322/32.png) [@FAli054](https://community.hubspot.com/u/FAli054)\
**Post date:** [January 22, 2025, 12:43pm UTC](https://community.hubspot.com/t/form-api-file-field/11817/5 "2025-01-22T12:43:22Z")

</div>

hey @Dadams  
I should use a third party to store my files and use a URL to send to HubSpot, or is there any other way to do this step?
