Force an attachment to download

Hi,
how can i force attachments to download, if i click on it? On .docx format, the file starts to download, but on other files like .os the file opens in a new tab.
How can i change the settings there?

Look for attachment.download.whitelist and attachment.download.blacklist in your xwiki.properties file.

1 Like

is this documented on xwiki.org somewhere?

Where is xwiki.properties file default located on a Debian Server with xWiki?

Only in the release notes, http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki52M2#HChoosingwhichtypesofattachmentscanbedisplayedinline28Security29 . See Loading... .

/etc/xwiki/xwiki.properties

Ironically my Changes don’t work even if i reboot the server.

#-------------------------------------------------------------------------------------# Attachment
#-------------------------------------------------------------------------------------
#-# [Since 5.2M2]
#-# Define the kind of attachment that can be displayed inline. You can either choose to do it through a whitelist (only
#-# the mimetypes defined in this list would be displayed inline) or a blacklist (every mimetype that is not in this list
#-# would be displayed inline if possible)
#-#
#-# By default we use the following whitelist (coma separated list of values).
attachment.download.whitelist=audio/basic,audio/L24,audio/mp4,audio/mpeg,audio/ogg,audio/vorbis,audio/vnd.rn-realaudio,audio/vnd.wave,audio/webm,image/gif,image/jpeg,image/pjpeg,image/png,image/svg+xml,image/tiff,text/csv,text/plain,text/xml,text/rtf,video/mpeg,video/ogg,video/quicktime,video/webm,video/x-matroska,video/x-ms-wmv,video/x-flv,text/os