# Create a description field for page attachments

**URL:** <https://forum.xwiki.org/t/create-a-description-field-for-page-attachments/14346>\
**Category:** Development\
**Tags:** proposal\
**Created:** [March 28, 2024, 12:29pm UTC](https://forum.xwiki.org/t/create-a-description-field-for-page-attachments/14346 "2024-03-28T12:29:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pjeanjean](https://forum.xwiki.org/user_avatar/forum.xwiki.org/pjeanjean/32/5901_2.png) [@pjeanjean](https://forum.xwiki.org/u/pjeanjean)\
**Post date:** [April 8, 2024, 8:55am UTC](https://forum.xwiki.org/t/create-a-description-field-for-page-attachments/14346/5 "2024-04-08T08:55:19Z")

</div>

Going back to this proposal, here are a few more thoughts:

> [@CharpentierLucas](#):
>
> If we decide that this comment field can be used as a `summary` or `description`, it would be great to provide it as a default image alternative text!

I would agree for a description but I’m not sure it makes sense for a summary, I would expect the information provided to be wrt the upload itself and less to the image.

> [@vmassol](#):
>
> The only thing that worries me a bit more about the change summary concept for attachments is that when an attachment is added to the page, it’s not saved and the page needs to be saved for the attachment to be added. Thus there’s already the change summary of the page to take care of the summary…

The main idea here is to add the feature to the attachments tab, where the upload button is. This is in view mode, not edit mode, so there is no summary field to interact with and the save is done automatically. Now, from what I can see, a comment set on an attachment is automatically added to the default page summary:

 ![image](https://forum.xwiki.org/uploads/default/original/2X/f/f88ea81bd04ef1fca049ecb6bd20908cbbfcca0c.png)  
This was the existing behavior, I have not changed anything here.  
So, I think it still makes sense to view it as a summary.

> [@vmassol](#):
>
> In this case, it’s something that should be editable and not related to the history.

This would not fit the requirements of the original issue, that state that “On the history view of the attachment, all successive descriptions could be visible”.

---

_[View the full topic](https://forum.xwiki.org/t/create-a-description-field-for-page-attachments/14346)._
