<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>How to: load images inline</title><link>https://community.telligent.com/community/11/w/user-documentation/67217/how-to-load-images-inline</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>How to: load images inline</title><link>https://community.telligent.com/community/11/w/user-documentation/67217/how-to-load-images-inline</link><pubDate>Mon, 03 Aug 2020 18:26:10 GMT</pubDate><guid isPermaLink="false">7d7e9008-ef2b-4746-bdaa-23feaa19976c</guid><dc:creator>Grant Pankonien</dc:creator><comments>https://community.telligent.com/community/11/w/user-documentation/67217/how-to-load-images-inline#comments</comments><description>Current Revision posted to User Documentation by Grant Pankonien on 08/03/2020 18:26:10&lt;br /&gt;
&lt;p&gt;This article originated from a &lt;a href="/community/developers/f/554/t/1064733.aspx"&gt;customer question&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="problem"&gt;&lt;a name="Problem"&gt;&lt;/a&gt;Problem&lt;/h2&gt;
&lt;p&gt;Images&amp;nbsp;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?&lt;/p&gt;
&lt;p&gt;Unfortunately this is not ideal in our case. Does anyone have any suggestions on how to mitigate or fix this?&lt;/p&gt;
&lt;h2 id="solution"&gt;&lt;a name="Solution"&gt;&lt;/a&gt;Solution&lt;/h2&gt;
&lt;p&gt;This behavior can be changed by updating the&lt;span style="font-family:courier new,courier;"&gt; communityserver.config&lt;/span&gt; file. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Inside &lt;span style="font-family:courier new,courier;"&gt;communityserver.config&lt;/span&gt; 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. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;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 &lt;span style="font-family:courier new,courier;"&gt;forceDownload=&amp;quot;false&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;mimeType extensions=&amp;quot;jpg,jpeg&amp;quot; mimeType=&amp;quot;image/jpeg&amp;quot; forceDownload=&amp;quot;false&amp;quot; /&amp;gt;&lt;/pre&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The recommended way to make this change to the configuration is to use a &lt;span style="font-family:courier new,courier;"&gt;communityserver_override.config&lt;/span&gt; file.&lt;/p&gt;
&lt;p&gt;This will update the configuration but make it easier to upgrade your site in the future. Below is a &lt;span style="font-family:courier new,courier;"&gt;communityserver_override.config&lt;/span&gt; file that you can use to make these updates to the image mime type entries.&lt;/p&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;Overrides&amp;gt;  &lt;br /&gt;  &amp;lt;Override xpath=&amp;quot;/CommunityServer/MimeTypes/mimeType[@extensions='jpg,jpeg']&amp;quot;&lt;br /&gt;          mode = &amp;quot;new&amp;quot;&lt;br /&gt;          name=&amp;quot;forceDownload&amp;quot;&lt;br /&gt;          value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;Override xpath=&amp;quot;/CommunityServer/MimeTypes/mimeType[@extensions='gif']&amp;quot;&lt;br /&gt;          mode = &amp;quot;new&amp;quot;&lt;br /&gt;          name=&amp;quot;forceDownload&amp;quot;&lt;br /&gt;          value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;Override xpath=&amp;quot;/CommunityServer/MimeTypes/mimeType[@extensions='bmp']&amp;quot;&lt;br /&gt;          mode = &amp;quot;new&amp;quot;&lt;br /&gt;          name=&amp;quot;forceDownload&amp;quot;&lt;br /&gt;          value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;Override xpath=&amp;quot;/CommunityServer/MimeTypes/mimeType[@extensions='png']&amp;quot;&lt;br /&gt;          mode = &amp;quot;new&amp;quot;&lt;br /&gt;          name=&amp;quot;forceDownload&amp;quot;&lt;br /&gt;          value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/Overrides&amp;gt;&lt;/pre&gt;
&lt;p&gt;After you have made these changes, you should touch your &lt;span style="font-family:courier new,courier;"&gt;web.config&lt;/span&gt; by opening and saving it in Notepad.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>How to: load images inline</title><link>https://community.telligent.com/community/11/w/user-documentation/67217/how-to-load-images-inline/revision/1</link><pubDate>Mon, 01 Jul 2019 15:45:32 GMT</pubDate><guid isPermaLink="false">7d7e9008-ef2b-4746-bdaa-23feaa19976c</guid><dc:creator>Former Member</dc:creator><comments>https://community.telligent.com/community/11/w/user-documentation/67217/how-to-load-images-inline#comments</comments><description>Revision 1 posted to User Documentation by Former Member on 07/01/2019 15:45:32&lt;br /&gt;
&lt;p&gt;This article originated from a &lt;a href="/community/developers/f/554/t/1064733.aspx"&gt;customer question&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="problem"&gt;&lt;a name="Problem"&gt;&lt;/a&gt;Problem&lt;/h2&gt;
&lt;p&gt;Images&amp;nbsp;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?&lt;/p&gt;
&lt;p&gt;Unfortunately this is not ideal in our case. Does anyone have any suggestions on how to mitigate or fix this?&lt;/p&gt;
&lt;h2 id="solution"&gt;&lt;a name="Solution"&gt;&lt;/a&gt;Solution&lt;/h2&gt;
&lt;p&gt;This behavior can be changed by updating the&lt;span style="font-family:courier new,courier;"&gt; communityserver.config&lt;/span&gt; file. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Inside &lt;span style="font-family:courier new,courier;"&gt;communityserver.config&lt;/span&gt; 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. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;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 &lt;span style="font-family:courier new,courier;"&gt;forceDownload=&amp;quot;false&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;mimeType extensions=&amp;quot;jpg,jpeg&amp;quot; mimeType=&amp;quot;image/jpeg&amp;quot; forceDownload=&amp;quot;false&amp;quot; /&amp;gt;&lt;/pre&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The recommended way to make this change to the configuration is to use a &lt;span style="font-family:courier new,courier;"&gt;communityserver_override.config&lt;/span&gt; file.&lt;/p&gt;
&lt;p&gt;This will update the configuration but make it easier to upgrade your site in the future. Below is a &lt;span style="font-family:courier new,courier;"&gt;communityserver_override.config&lt;/span&gt; file that you can use to make these updates to the image mime type entries.&lt;/p&gt;
&lt;pre class="brush: xml"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;Overrides&amp;gt;  &lt;br /&gt;  &amp;lt;Override xpath=&amp;quot;/CommunityServer/MimeTypes/mimeType[@extensions='jpg,jpeg']&amp;quot;&lt;br /&gt;          mode = &amp;quot;new&amp;quot;&lt;br /&gt;          name=&amp;quot;forceDownload&amp;quot;&lt;br /&gt;          value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;Override xpath=&amp;quot;/CommunityServer/MimeTypes/mimeType[@extensions='gif']&amp;quot;&lt;br /&gt;          mode = &amp;quot;new&amp;quot;&lt;br /&gt;          name=&amp;quot;forceDownload&amp;quot;&lt;br /&gt;          value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;Override xpath=&amp;quot;/CommunityServer/MimeTypes/mimeType[@extensions='bmp']&amp;quot;&lt;br /&gt;          mode = &amp;quot;new&amp;quot;&lt;br /&gt;          name=&amp;quot;forceDownload&amp;quot;&lt;br /&gt;          value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;Override xpath=&amp;quot;/CommunityServer/MimeTypes/mimeType[@extensions='png']&amp;quot;&lt;br /&gt;          mode = &amp;quot;new&amp;quot;&lt;br /&gt;          name=&amp;quot;forceDownload&amp;quot;&lt;br /&gt;          value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/Overrides&amp;gt;&lt;/pre&gt;
&lt;p&gt;After you have made these changes, you should touch your &lt;span style="font-family:courier new,courier;"&gt;web.config&lt;/span&gt; by opening and saving it in Notepad.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>