# Posting a file to a form

**URL:** <https://discourse.getcockpit.com/t/posting-a-file-to-a-form/1038>\
**Category:** Support\
**Created:** [October 2, 2019, 7:48am UTC](https://discourse.getcockpit.com/t/posting-a-file-to-a-form/1038 "2019-10-02T07:48:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hosseiny](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/hosseiny/32/715_2.png) [@hosseiny](https://discourse.getcockpit.com/u/hosseiny)\
**Post date:** [October 2, 2019, 7:48am UTC](https://discourse.getcockpit.com/t/posting-a-file-to-a-form/1038/1 "2019-10-02T07:48:30Z")

</div>

Hello,  
in the beginning thanks for an awesome CMS!

I was wondering is there a way I can use the addAsset API to save files to my form submission.

My use case is a form with an upload CV field. I want to be able to view/download the uploaded file from the submitted form.

Thanks.

---

<div class="post-metadata">

**Author:** ![pauloamgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pauloamgomes/32/48_2.png) [@pauloamgomes](https://discourse.getcockpit.com/u/pauloamgomes)\
**Post date:** [October 2, 2019, 8:02am UTC](https://discourse.getcockpit.com/t/posting-a-file-to-a-form/1038/2 "2019-10-02T08:02:33Z")

</div>

Check [Add Images to Collections via API?](https://discourse.getcockpit.com/t/add-images-to-collections-via-api/418)

---

<div class="post-metadata">

**Author:** ![hosseiny](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/hosseiny/32/715_2.png) [@hosseiny](https://discourse.getcockpit.com/u/hosseiny)\
**Post date:** [October 2, 2019, 8:17am UTC](https://discourse.getcockpit.com/t/posting-a-file-to-a-form/1038/3 "2019-10-02T08:17:17Z")

</div>

I actually did but I was trying to make the CV field in the collection of type File & and make it directly viewable / downloadable.

But I guess this was too much, I ended up referencing the asset link as a Text.

Thanks for the immediate response 🙂
