Telligent Community
Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Telligent Community 10.x
  • Verint Community
  • More
Telligent Community 10.x
Legacy User Documentation How to: Load images inline
  • Ask the Community
  • User Documentation
  • API Documentation
  • Manager Training
  • Developer Training
  • Tags
  • More
  • Cancel
  • New
  • Telligent Community 10.0
  • -All platform topics
    • +Achievements
    • +Activity Story Stream
    • +Authentication
    • +Blogs
    • +Business Rules
    • Calendar
    • +Chat
    • +Content tools
    • Document Preview
    • +Email
    • Featured content
    • +Forums
    • +Friends
    • Gamification
    • +Groups
    • Hashtags
    • Ideas
    • +Job Service
    • +License
    • Likes
    • +Localization
    • +Media galleries
    • +Members
    • Mentions
    • +Mobile
    • +Moderation, spam and abuse
    • +Notifications & messages
    • Our quality assurance testing strategy
    • +Page Editing
    • +Permissions
    • +Profile & sign-in
    • Quick Post
    • Ratings
    • Responsive design
    • +Roles
    • Rule Automation
    • +Scores
    • +Search
    • +Security
    • +SEO
    • +Site admin
    • +Site configuration
    • Social basics guide
    • Social Twitter feed
    • +Status messages
    • Tags
    • -Telligent Community Troubleshooting Guide
      • Can't insert an image using the enhanced text editor after upgrading
      • Common things to check when using Forms Authentication
      • Common webfarm configuration questions
      • Configuration problems
      • Exceptions
      • +Fix access to uploaded files
      • Friendly error message
      • How to: Load images inline
      • Search index problems
      • Search stop words
      • Sorry, there was a problem with your last request message
      • SQL times out when accessing the site
      • Telligent Job Service troubleshooting
      • Troubleshoot search errors
    • Terminology Guide
    • +Themes
    • Tour Tips
    • +Tuning & performance
    • +User accounts
    • +User reputation score
    • Video Transcoding
    • +Widgets
    • +Wikis
  • Customization
  • Development
  • Getting started
  • System Requirements
  • +How Do I Install Telligent Community
  • +Upgrade Telligent Community
  • Release Notes

How to: Load images inline

This article originated from a customer question.

Problem

Images in the blog by default open to a full-sized view of the image. Since updating Telligent Community Server, this no longer works; instead we are getting a File Download pop-up window. We suspect that this is due to changes to the image handler?

Unfortunately this is not ideal in our case. Does anyone have any suggestions on how to mitigate or fix this?

Solution

This behavior can be changed by updating the communityserver.config file.  

Inside communityserver.config is a section called MimeTypes. This relates the mime type to a particular file extension, it also indicates if a file type should be forced to be downloaded or not.  

To change the behavior for jpg files, for example, you would change the mime type entry for .jpg so that it looks like the following. The part that was added was the forceDownload="false".

<mimeType extensions="jpg,jpeg" mimeType="image/jpeg" forceDownload="false" />

You will want to make this change for bmp, gif, png, and jpg. The default is to force a file to be downloaded when it is accessed directly through the centralized file store handler.

The recommended way to make this change to the configuration is to use a communityserver_override.config file.

This will update the configuration but make it easier to upgrade your site in the future. Below is a communityserver_override.config file that you can use to make these updates to the image mime type entries.

<?xml version="1.0" encoding="utf-8"?>
<Overrides>
<Override xpath="/CommunityServer/MimeTypes/mimeType[@extensions='jpg,jpeg']"
mode = "new"
name="forceDownload"
value="false" />
<Override xpath="/CommunityServer/MimeTypes/mimeType[@extensions='gif']"
mode = "new"
name="forceDownload"
value="false" />
<Override xpath="/CommunityServer/MimeTypes/mimeType[@extensions='bmp']"
mode = "new"
name="forceDownload"
value="false" />
<Override xpath="/CommunityServer/MimeTypes/mimeType[@extensions='png']"
mode = "new"
name="forceDownload"
value="false" />
</Overrides>

After you have made these changes, you should touch your web.config by opening and saving it in Notepad.

  • Share
  • History
  • More
  • Cancel
Related
Recommended
  • Telligent
  • Professional Services
  • Submit a Support Ticket
  • Become a Partner
  • Request a Demo
  • Contact Us

About
Privacy Policy
Terms of use
Copyright 2021 Verint, Inc.
Powered by Verint Community