Last modified by Eleni Cojocariu on 2026/09/28 14:15

Hide last authors
Eleni Cojocariu 7.1 1 Ask whoever attaches a file for a line describing the upload, one of the choices [[Attachments>>doc:documentation.xs.admin.attachments.WebHome]] introduces, with one setting in ##xwiki.properties##.
Eleni Cojocariu 4.1 2 1. Stop XWiki.
3 1. Open ##xwiki/WEB-INF/xwiki.properties## and find the block below. The last line ships commented out, with ##false## on it; uncomment it and set it to ##true##.(((
4 {{code language="none"}}
5 #-# [Since 16.3.0RC1]
6 #-# Indicate whether or not comments for attachment uploads should be settable from UI, and displayed whenever the
7 #-# attachment revisions are listed. The default is false.
8 attachment.upload.enableComments=true
9 {{/code}}
10 )))
11 1. Start XWiki again.
12 1. Attach a file to any Page. The upload form of the Attachments tab now opens on an "Upload summary" field, above the file chooser.(((
13 {{image reference="upload-summary-field.png" size="medium" alt="The Upload summary field and its hint, above the file chooser of the attachment upload form"/}}
14 )))
15 1. Open the history of that attachment. What was typed stands in a "Summary" column, against the version it was uploaded with.(((
16 {{image reference="attachment-revisions-summary.png" size="large" alt="The attachment history, with a Summary column holding one line for each of two versions"/}}
17 )))
18
19 XWiki reads this setting from ##xwiki.properties## and from nowhere else, so, unlike the mimetype restriction, it cannot be turned on for a single wiki or a single Page tree. It is on or off for the whole installation.

Get Connected