Tuesday Council Spotlight on Friday – Bug in uploading image with long name

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Tech Community.

Corona times are crazy! So let's follow it when needed... Since this topic is important I got special permission from the TechNet Wiki Council to publish it today on Friday, in the category of Tuesday Council Spotlight... so keep reading to understand why this is a must to know information for all the TechNet Wiki Ninjas.

 

Good Day guys!!!

 

I hope all are doing well, during the home quarantine due to the Coronavirus pandemic across the globe. This is great time to spend on writing new articles in the TechNet Wiki system. And while I was writing a new article - I got stuck up. One of the images which got uploaded successfully, didn’t render. With the help of my friend Ronen Ariely, Microsoft MVP -  I have fixed this issue and he suggested I share this troubleshooting with the community. So, sharing this as a blog – hope you will like this. Before starting this, thanks a million to my friend Ronen Ariely for his guidance and help.

 

About the Author:

 

Habibur Rahaman is a SharePoint Project lead and scrum master. He is a C# Corner MVP, Writer, Author and Blogger in Microsoft TechNet Wiki community and C# Corner. And also contribute to the community by answering the forum question in the Microsoft Technet forum and SharePoint stack exchange.

 

Issue Description:

 

I was trying to upload the below image – it got uploaded successfully didn’t get any error, but after uploading, the image was not rendering.

Image Name: “Get-all-workflows-from-SharePoint-Online-Tenant-using-PowerShell-CSOM4

 

HabiburRahaman_0-1586010257239.jpeg

 

At run time the image was showing like below highlighted:

HabiburRahaman_1-1586010257243.png

 

HTML code about the above image:

 

If we check the html section about the above issued image, we will get the below code.

 

 

<a href="https://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-05/6215.Get_2D00_all_2D00_workflows_2D00_from_2D00_SharePoint_2D00_Online_2D00_Tenant_2D00_using_2D00_PowerShell_2D00_CSOM4.jpg"><img alt="" src="https://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-05/6215.Get_2D00_all_2D00_workflows_2D00_from_2D00_SharePoint_2D00_Online_2D00_Tenant_2D00_using_2D00_PowerShell_2D00_CSOM4.jpg" style="border-width: 0px; border-style: solid;"></a>

 

 

 

How to fix the above bug?

 

If we look at the above-highlighted file name, we can see it is very long name, and it seems like the wiki engine does not support this length.

 

Solution:

 

(1) Delete the existing HTML code for the particular file mentioned above. (2) Shorten the file name which we want to upload. (3) Next simply re-upload it again.

New File Name: “Get-all-workflows-from-SharePoint-Online-Tenant”

 

Now we could see that the file has been rendered successfully (shown below).

HabiburRahaman_2-1586010257262.png

 

After successful rendering the image – the html code for the file look like below:

 

 

<a href="https://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-05/4265.Get_2D00_all_2D00_workflows_2D00_from_2D00_SharePoint_2D00_Online_2D00_Tenant.jpg"><img alt="" src="https://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-05/4265.Get_2D00_all_2D00_workflows_2D00_from_2D00_SharePoint_2D00_Online_2D00_Tenant.jpg" style="border-width: 0px; border-style: solid;"></a>

 

 

 

Thanks, for reading this – hope this troubleshooting will help you while writing the article in the TechNet wiki.

 

Thanks & Regards,

Habibur Rahaman

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.