# How to upload document to bonita

**URL:** <https://community.ofelia.com/t/how-to-upload-document-to-bonita/7853>\
**Category:** Q&A\
**Created:** [7 October 2016 09:41 UTC](https://community.ofelia.com/t/how-to-upload-document-to-bonita/7853 "2016-10-07T09:41:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mainamaan77](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@mainamaan77](https://community.ofelia.com/u/mainamaan77)\
**Post date:** [7 October 2016 09:41 UTC](https://community.ofelia.com/t/how-to-upload-document-to-bonita/7853/1 "2016-10-07T09:41:23Z")

</div>

I want to upload all type of documents to be uploaded to alfresco but how is it possible using “cmis upload new document connector”?. Currently i can upload text document only. how is it possible in bonita.

---

<div class="post-metadata">

**Author:** ![contact\_420](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@contact\_420](https://community.ofelia.com/u/contact_420)\
**Post date:** [10 October 2016 14:57 UTC](https://community.ofelia.com/t/how-to-upload-document-to-bonita/7853/2 "2016-10-10T14:57:18Z")

</div>

There is no problem to upload any kind of document in Bonita (and Alfresco, or any other CMIS platform).  
Typically what you need to do is:

- Create variable for document in your process (Select Pool → Data → Documents → Add)
- Add file field in form contract (Select Pool or User task → Execution → Contract)
- On the form (in UI Designer) add “Upload” component and map it with the field in contract
- Configure CMIS upload document connector (in “Document name” field choose your file variable (from step 1).

Best regards,  
bpms.help
