# Add files in the comments

**URL:** <https://kanboard.discourse.group/t/add-files-in-the-comments/232>\
**Category:** Open Discussions\
**Created:** [March 1, 2019, 8:14am UTC](https://kanboard.discourse.group/t/add-files-in-the-comments/232 "2019-03-01T08:14:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![renothing](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/renothing/32/342_2.png) [@renothing](https://kanboard.discourse.group/u/renothing)\
**Post date:** [June 15, 2019, 3:37pm UTC](https://kanboard.discourse.group/t/add-files-in-the-comments/232/5 "2019-06-15T15:37:28Z")

</div>

I thinks this feature can be implemented in core module `task_has_files`, just need add new column `comment_id`. it’s task file only when comment\_id=0, otherwise comment file. but if we want use foreign key for consistency constraint  
, need a new model `CommentFileModel`

it’s well used in many scenes, like support ticket system for customer. especially when user reply task with attachments via email.  
also in usually we need comment with files/images inline too.

maybe need some rework on editor, integration screenshot and attachment support. just like gmail did in their editor. very usefull for common scenes. there is one I mentioned it [Replace current editor](https://kanboard.discourse.group/t/replace-current-editor/445/2).

@fred how about your opinion?

---

_[View the full topic](https://kanboard.discourse.group/t/add-files-in-the-comments/232)._
