# where are uploaded files in ended cases

**URL:** <https://community.ofelia.com/t/where-are-uploaded-files-in-ended-cases/5388>\
**Category:** Q&A\
**Created:** [24 November 2014 14:31 UTC](https://community.ofelia.com/t/where-are-uploaded-files-in-ended-cases/5388 "2014-11-24T14:31:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![minerodo](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@minerodo](https://community.ofelia.com/u/minerodo)\
**Post date:** [24 November 2014 14:31 UTC](https://community.ofelia.com/t/where-are-uploaded-files-in-ended-cases/5388/1 "2014-11-24T14:31:13Z")

</div>

I need to find the documents that i have uploaded to Bonitasoft on ended cases. The version that i am using is 6.3.7 Comunity. I have been trying with end user and with admin user but i cant find the option anywhere, in menu “Cases-\>Archived” I just can see the fields that I have populated like the name of a client or phone, but I have uploaded a Word document in have been impossible to find it.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [24 November 2014 16:41 UTC](https://community.ofelia.com/t/where-are-uploaded-files-in-ended-cases/5388/2 "2014-11-24T16:41:41Z")

</div>

Hi,

The files are stored into the database and to access them after ended case, you will need to use the following document api to retreive them :  
[http://documentation.bonitasoft.com/javadoc/api/6.3/org/bonitasoft/engine/bpm/document/ArchivedDocument.html](http://documentation.bonitasoft.com/javadoc/api/6.3/org/bonitasoft/engine/bpm/document/ArchivedDocument.html)

Best regards,  
LL

---

<div class="post-metadata">

**Author:** ![minerodo](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@minerodo](https://community.ofelia.com/u/minerodo)\
**Post date:** [24 November 2014 22:06 UTC](https://community.ofelia.com/t/where-are-uploaded-files-in-ended-cases/5388/3 "2014-11-24T22:06:11Z")

</div>

thank you for your answer, but could you please be more specific on how can i use the code. On de link there are no examples justo only this line of code:

documentURL = documentMapping.getDocumentURL();

Do i have to import a library? How can i specify the document that i need to get the url.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![minerodo](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@minerodo](https://community.ofelia.com/u/minerodo)\
**Post date:** [24 November 2014 22:27 UTC](https://community.ofelia.com/t/where-are-uploaded-files-in-ended-cases/5388/4 "2014-11-24T22:27:16Z")

</div>

thank you for your answer, but could you please be more specific on how can i use the code. On de link there are no examples justo only this line of code:

documentURL = documentMapping.getDocumentURL();

Do i have to import a library? How can i specify the document that i need to get the url.

Thanks for your help.

- See more at: [http://community.ofelia.com/answers/where-are-uploaded-files-ended-cases#node-16344](http://community.ofelia.com/answers/where-are-uploaded-files-ended-cases#node-16344)

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [25 November 2014 09:22 UTC](https://community.ofelia.com/t/where-are-uploaded-files-in-ended-cases/5388/5 "2014-11-25T09:22:15Z")

</div>

Hello,

You’ll find some pointers on which library to import and how to get doc and use the API.  
[http://community.ofelia.com/answers/how-get-document-pool-subprocess](http://community.ofelia.com/answers/how-get-document-pool-subprocess)

You’ll need to adapt also the function to the one you need getDocumentURL.

There are some other sample codes on how to handle documents here :  
[http://documentation.bonitasoft.com/handling-documents](http://documentation.bonitasoft.com/handling-documents)

Hopefully it helps.  
Regards  
LL

---

<div class="post-metadata">

**Author:** ![minerodo](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@minerodo](https://community.ofelia.com/u/minerodo)\
**Post date:** [26 November 2014 14:29 UTC](https://community.ofelia.com/t/where-are-uploaded-files-in-ended-cases/5388/6 "2014-11-26T14:29:32Z")

</div>

Thanks!! The answer is useful for me!
