# \[AmityUIKitClient\] Add Option to limit attachments types

**URL:** https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325
**Category:** Android
**Created:** [October 13, 2021, 10:06pm UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325 "2021-10-13T22:06:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![franco](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@franco](https://forum.social.plus/u/franco)
#### Post date: [October 13, 2021, 10:06pm UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325/1 "2021-10-13T22:06:53Z")

</div>

Is it possible to limit in the the Post Creation fragment/activity the attachment options? We would like to exclude Files and Videos for privacy reasons when creating a post

---

<div class="post-metadata">

### Author: ![Trust](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/trust/32/63_2.png) [@Trust](https://forum.social.plus/u/Trust)
#### Post date: [October 14, 2021, 3:26am UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325/2 "2021-10-14T03:26:45Z")

</div>

Hell Franco!  
We currently don’t support an ability to exclude files/videos at the moment. However i’d suggest you to create your custom post creation fragment/activity using our SDK functions which can be found here →   
Create a text post : [https://docs.amity.co/social/android/posts#create-a-text-post](https://docs.amity.co/social/android/posts#create-a-text-post)  
Create an image post : [https://docs.amity.co/social/android/posts#create-an-image-post](https://docs.amity.co/social/android/posts#create-an-image-post)

---

<div class="post-metadata">

### Author: ![franco](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@franco](https://forum.social.plus/u/franco)
#### Post date: [October 15, 2021, 6:34pm UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325/3 "2021-10-15T18:34:30Z")

</div>

Thanks Trust,  
We actually ended up doing that, to have a custom creation post. But that’s why I also created the other issue related to the Edit Post option. The current edit post option, will take the user to the Amity Post creation fragment, which I can’t seem to intercept, and that offers the user again the option to attach anything.

---

<div class="post-metadata">

### Author: ![Mel](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Mel](https://forum.social.plus/u/Mel)
#### Post date: [October 18, 2021, 10:55pm UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325/4 "2021-10-18T22:55:54Z")

</div>

Hi Trust! I work with Franco and just wanted to follow up on this post to reiterate that we need to remove ability to add files and videos to reduce the risk to our business. Is there anything else we can do here to solve this? If not is there a way I can escalate this to see if the Android SDK can be changed to better support this? It hasn’t been an issue on iOS, only Android. Any extra support here would be much appreciated.

---

<div class="post-metadata">

### Author: ![Trust](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/trust/32/63_2.png) [@Trust](https://forum.social.plus/u/Trust)
#### Post date: [October 19, 2021, 6:44am UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325/5 "2021-10-19T06:44:31Z")

</div>

Hello Mel and Franco, our tech success team will reach out to you for further discussions.

---

<div class="post-metadata">

### Author: ![franco](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@franco](https://forum.social.plus/u/franco)
#### Post date: [November 17, 2021, 8:09pm UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325/6 "2021-11-17T20:09:29Z")

</div>

Looks like version 2.6.1 is now exposing a way to limit the attachment options if you use the post creation fragment.  
But how does this apply when we use the built-in Amity feed, and a user chooses to edit a post from there? We still can’t limit the attachment options there, can we?

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [November 23, 2021, 9:38am UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325/7 "2021-11-23T09:38:10Z")

</div>

Hello @franco by design, users are not allowed to choose/add new attachments in the edit post section, they can only edit text and delete existing attachments.

---

<div class="post-metadata">

### Author: ![franco](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@franco](https://forum.social.plus/u/franco)
#### Post date: [November 23, 2021, 6:06pm UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325/8 "2021-11-23T18:06:34Z")

</div>

I do see the options to attach new attachments when editing, see the following video:

> **[New video by Franco Jaramillo](https://photos.app.goo.gl/oGb8m5CzCKxkoeHF9)**

Although, it doesn’t attach the photo. Which is very confusing.

---

<div class="post-metadata">

### Author: ![Trust](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/trust/32/63_2.png) [@Trust](https://forum.social.plus/u/Trust)
#### Post date: [November 23, 2021, 6:44pm UTC](https://forum.social.plus/t/amityuikitclient-add-option-to-limit-attachments-types/325/9 "2021-11-23T18:44:37Z")

</div>

Hello Franco 😃  
May i double check again if the version that you’re using is 2.6.1? We have hidden the compose bar in tan edit page in the version 2.6.1 and above. The post editing page shouldn’t show the compose bar as your attached video.
