Kentico CMS 7.0 Developer's Guide

Forum post attachments

Forum post attachments

Previous topic Next topic Mail us feedback on this topic!  

Forum post attachments

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

Users can attach files to forum posts. To enable users to do this, you have to assign the Attach files permission on the forum's Security tab to the desired user roles or all authenticated users. See the Security topic for more details. There are also some additional settings related to attachments:


In Site Manager -> Settings -> Community -> Forums, you can make the following setting:


Forum attachments allowed extensions - you can specify which file extensions can be attached to forum posts. Extensions should be entered without dots and separated by semicolons. If blank, all extensions are allowed.


In web part properties of the Forum group web part, you can make the following settings:


Display attachment image - if checked, attached images will be displayed as images, not only as links.

Attachment image maximal side size - if an attached image is larger than the entered value, it will be resized so that its larger side's size is equal to the entered value.


When editing a forum in CMS Desk -> Tools -> Forums, you can set the following property on the General tab:


Attachment max. file size (kB) - you can define the maximum size of an attached file in kB.


Adding attachments to a forum post


When adding a post to a forum, users can check the Attach file(s) check box at the bottom of the post adding dialog.




After clicking OK, a new dialog will be displayed, where users can upload the attachments. When all desired images are uploaded, users can click the Back button, which will take them back to the forum.




Back in the forum thread, links to uploaded attachments will be displayed with the post, as you can see in the screenshot below.