# File attachment at comment

**URL:** <https://forum.social.plus/t/file-attachment-at-comment/1569>\
**Category:** TS SDK\
**Created:** [December 12, 2024, 11:27am UTC](https://forum.social.plus/t/file-attachment-at-comment/1569 "2024-12-12T11:27:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asafruddin](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@asafruddin](https://forum.social.plus/u/asafruddin)\
**Post date:** [December 12, 2024, 11:27am UTC](https://forum.social.plus/t/file-attachment-at-comment/1569/1 "2024-12-12T11:27:50Z")

</div>

Hi there, I am using TS SDK  
I tried to send a comment with FileType.File for attachment, but the response is code 422 and the error is “The field ‘attachments[0].type’ does not match any of the allowed values.”.  
Can’t we send a comment with an attachment other than FileType.Image?

---

<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:** [December 12, 2024, 1:41pm UTC](https://forum.social.plus/t/file-attachment-at-comment/1569/2 "2024-12-12T13:41:01Z")

</div>

Hello @asafruddin , to create comment with image. Please refer to the docs here: [Create Comment | Amity Docs](https://docs.amity.co/social-plus-sdk/social/comments/create-comment#create-comment-with-image)
