# Add download button to a media type document

**URL:** <https://community.bloomreach.com/t/add-download-button-to-a-media-type-document/4528>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [October 16, 2024, 9:58am UTC](https://community.bloomreach.com/t/add-download-button-to-a-media-type-document/4528 "2024-10-16T09:58:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Razvan](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/razvan/32/2111_2.png) [@Razvan](https://community.bloomreach.com/u/Razvan)\
**Post date:** [October 16, 2024, 9:58am UTC](https://community.bloomreach.com/t/add-download-button-to-a-media-type-document/4528/1 "2024-10-16T09:58:32Z")

</div>

I am using Bloomreach 14.7.21.  
In my project I have Media Document Types like audios and videos which can be uploaded to an S3 bucket. Is there a way to add a download button or a link to the media stored in S3 so the CMS users can download it in View mode?

---

<div class="post-metadata">

**Author:** ![Nicholas\_Pavao](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/nicholas_pavao/32/1370_2.png) [@Nicholas\_Pavao](https://community.bloomreach.com/u/Nicholas_Pavao)\
**Post date:** [October 16, 2024, 2:20pm UTC](https://community.bloomreach.com/t/add-download-button-to-a-media-type-document/4528/2 "2024-10-16T14:20:21Z")

</div>

Hey Razvan,

By default, assets are not stored in S3 and are downloadable through the CMS UI. You are saving your assets in S3, telling me you have some customizations to your asset management. Could you please provide more information about your customizations?

How are you saving these assets to S3?  
What customizations have you made to the UI?

---

<div class="post-metadata">

**Author:** ![Razvan](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/razvan/32/2111_2.png) [@Razvan](https://community.bloomreach.com/u/Razvan)\
**Post date:** [October 17, 2024, 9:19am UTC](https://community.bloomreach.com/t/add-download-button-to-a-media-type-document/4528/3 "2024-10-17T09:19:39Z")

</div>

> [@Nicholas\_Pavao](#):
>
> vide more information about your customizations?
> 
> How are you saving these assets to S3?  
> What customizations have you made to the UI?

Hi Nicholas,

I am using the Resource Cloud plugin to upload the assets to S3 (only for videos and audios)

---

<div class="post-metadata">

**Author:** ![Nicholas\_Pavao](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/nicholas_pavao/32/1370_2.png) [@Nicholas\_Pavao](https://community.bloomreach.com/u/Nicholas_Pavao)\
**Post date:** [October 17, 2024, 3:22pm UTC](https://community.bloomreach.com/t/add-download-button-to-a-media-type-document/4528/4 "2024-10-17T15:22:00Z")

</div>

I see. Assuming you are referring to this plugin: [GitHub - bloomreach/xm-s3-manager: AWS S3 Manager feature using Open UI](https://github.com/bloomreach/xm-s3-manager)

Downloading the assets is not currently supported by the plugin. In order to support that, the plugin will have to be updated.

It looks like [xm-s3-manager/api/src/main/java/com/bloomreach/xm/manager/s3/service/AwsS3ServiceImpl.java at master · bloomreach/xm-s3-manager · GitHub](https://github.com/bloomreach/xm-s3-manager/blob/master/api/src/main/java/com/bloomreach/xm/manager/s3/service/AwsS3ServiceImpl.java) line 104 is where the objects are retrieved and listed. If this list has enough meta information to derive a download link from S3, the only real difficulty I see here is updating the UI to allow the download. This will of course depend on how S3 download links are generated.

---

<div class="post-metadata">

**Author:** ![Razvan](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/razvan/32/2111_2.png) [@Razvan](https://community.bloomreach.com/u/Razvan)\
**Post date:** [October 18, 2024, 8:30am UTC](https://community.bloomreach.com/t/add-download-button-to-a-media-type-document/4528/5 "2024-10-18T08:30:04Z")

</div>

Thank you for your reply, Nicholas.

Would you know if it is possible to have the download button on the view mode of a Document Type, before editing the Document?

---

<div class="post-metadata">

**Author:** ![Razvan](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/razvan/32/2111_2.png) [@Razvan](https://community.bloomreach.com/u/Razvan)\
**Post date:** [October 22, 2024, 9:18am UTC](https://community.bloomreach.com/t/add-download-button-to-a-media-type-document/4528/6 "2024-10-22T09:18:02Z")

</div>

I managed to do some customization on the UI of the fields and add a link which is now available on View mode

---

<div class="post-metadata">

**Author:** ![Pselvam](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/pselvam/32/1888_2.png) [@Pselvam](https://community.bloomreach.com/u/Pselvam)\
**Post date:** [December 20, 2024, 5:03am UTC](https://community.bloomreach.com/t/add-download-button-to-a-media-type-document/4528/7 "2024-12-20T05:03:49Z")

</div>

Hi @Razvan ,

We are happy you are part of Bloomreach Developer’s Community.  
Thank you for reaching out to us.  
We hope we have answered your queries and therefore marking this thread for Closure.  
Looking forward to your continuous contribution towards our vibrant Bloomreach Community.

Thank you
