How to add custom file icons on SharePoint 2010 document library?

Hi there,
In a document library SharePoint shows the PDF and Word etc icons all fine - however we have a custom file format with a custom icon. Is this possible to add this custom icon for our custom extension? How?
Thank you so much.

Hi,
You could accomplish your requirement by using jQuery with these steps, and this code is using jQuery to modify it on the current page, if you would like to make it work on all library, you need to choose the former method or add this JQuery script on all
library pages manually:
Upload a custom icon to file “14\ Template\Images” or your SharePoint document library.
Add this code below in the document library that you want to extend your custom icon, you could add code by following these: Click edit page in the document library -> add a web part -> choose Content Editor -> click edit source in the Ribbon ->
add the source below -> click OK.
<script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function(){
var fileObject = $("[title$='docx']");
for(var i=0; i < fileObject.length; i++){
//fileObject[i].outerHTML="<img width=\"16\" height=\"16\" title=\"test.docx\" alt=\"test.docx\" src=\"/_layouts/15/images/custom.png\" border=\"0\">"; // upload your custom icon to file ” 14\ Template\Images”, replace your src URL
fileObject[i].outerHTML="<img width=\"16\" height=\"16\" title=\"test.docx\" alt=\"test.docx\" src=\"/sites/sharepoint2013/Shared%20Documents/custom.png\" border=\"0\">"; // upload your custom icon to SharePoint document library, replace your src URL
</script>
The screenshot below is my result:
Best Regards
Vincent Han
TechNet Community Support

Similar Messages

  • How to Implement custom share functionality in SharePoint 2013 document Lib programmatically?

    Hi,
    I have created custom action for Share functionality in document library.
    On Share action i'm showing Model pop up with Share form with addition functionality.
    I am developing custom share functionality because there is some addition functionality related to this.
    How to Implement custom share functionality in SharePoint 2013  document Lib pro-grammatically?
    Regards,
    - Siddhehswar

    Hi Siddhehswar:
    I would suggest that you use the
    Ribbon. Because this is a flexible way for SharePoint. In my project experience, I always suggest my customers to use it. In the feature, if my customers have customization about permission then i can accomplish this as soon
    as possible. Simple put, I utilize this perfect mechanism to resolve our complex project requirement. Maybe we customize Upload/ Edit/ Modify/ Barcode/ Send mail etc... For example:
    We customize <Edit> Ribbon. As shown below.
    When user click <Edit Item>, the system will
    render customized pop up window.
    Will

  • 2GB of video file upload to SharePoint 2013 document library

    Hi All,
    We have a requirement of uploading a 2GB of video file to a SharePoint 2013 document library. Will there be any issue due to increasing the maximum file size?
    Many Thanks,
    sudesh withanage

    It will be better if you save all your videos at one location,i.e Asset Library.Check the link for Asset libraries
    http://technet.microsoft.com/en-us/library/ee414275(v=office.15).aspx
    In case you want to add other files (i,e excel ,word) along with videos you will need to increase library size,
    Check the following link to increase the file size ,as well as the issues and workaround to solve the problems
    http://blogs.technet.com/b/praveenh/archive/2012/11/16/issues-with-uploading-large-documents-on-document-library-wss-3-0-amp-moss-2007.aspx
    Please Mark it as answer if this reply helps you in resolving the issue,It will help other users facing similar problem

  • SharePoint 2010 document library - Add a link that points to a page

    Hi
    A department has created a document library. Now, they would like to have a link visible in that library that points to another .aspx page. Is that possible?
    I've seen how to add a "link to a document", but I want to add a link to a page, not a document.
    Thanks in advance,
    Sonya

    Thanks. I think adding a web part should satisfy their request.
    I tried the "Link to a document" content type suggestion, but I'm not sure if there's something missing from our SharePoint installation, or if something is different with our template.docx file, or if SharePoint 2010 is playing strangely with
    Office 2013, but after I added the "Link to a document" content type and chose it from the New Document drop-down, it wants to auto-launch Word 2013 with no dialogue for adding a URL.
    However, once in Word, there are a couple of boxes just above the content area to type a URL and a description (screenshot below). I pasted the URL to the page in the URL box, left the description and content area blank, then saved the file back
    to the library. However, when you click on the document in the library, it simply wants to open Word without going to the link.

  • How can I view a thumbnail of my AI file in a Sharepoint 2010 Asset Library?

    I have created an Asset Libary in my Sharepoint 2010 environment.  The default view for the library is a thumbnail view.  I want to be able to see a thumbnail image of my Adobe Illustrator file and possibly EPS files.  Any suggestions??

    I have created an Asset Libary in my Sharepoint 2010 environment.  The default view for the library is a thumbnail view.  I want to be able to see a thumbnail image of my Adobe Illustrator file and possibly EPS files.  Any suggestions??

  • How to create column for attachment in SharePoint 2013 Document Library.

    I've created document Library where user can upload the file while click on Upload option (OOTB).
    Now in this Library I want to create one more column where user can put some comment and attach one more file for reference. 
    For comment I can create "Single line of text" type calumn where user can put some comment but for attachment not sure which type of column I have to create.
    Want to know is there OOTB feature/column available which I can use to Add / create a one more column to upload a document for reference.

    Hi,
    For issue 1, please refer 
    To manage the permissions for a Document Set, you must have at least the Design or Full Control permission level.
    On the Welcome Page for the Document Set, click the Manage tab of the Document Set ribbon, and then click Permissions.
    Do one of the following:
    To change the permission settings for the document library itself, click Manage Parent.
    To stop inheriting permissions from the document library and create unique permissions for this Document Set individually, click Stop Inheriting Permissions.
    To view the specific permissions an individual has, click Check Permissions, and then type the name of the user or group you want to check.
    To inherit permissions from the parent document library (if the Document Set was previously configured to stop inheriting them) click Inherit Permissions.
    For more information about working with permissions, see the links under See Also.
    https://support.office.com/en-in/article/Create-and-manage-Document-Sets-c71d5796-d559-48de-b1b3-42383bdd13ea?ui=en-US&rs=en-IN&ad=IN
    For Issue 2:
    You can create a link in the Quick Launch bar
    http://support.sherweb.com/Faqs/Show/how-to-add-a-link-to-the-quick-launch-toolbar-in-sharepoint-sharepoint-2013
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • Saving Files from Word 2010 into SharePoint 2010 document library deployed as a sandbox solution gives "Web page no longer exist" Error 410

    Created a new SharePoint 2010 List Definition project, Sandbox deployment option. List Definition type: Documents Library. When attempting to save into the document library from Microsoft Word 2010 I get "The webpage no longer exists" error in
    the File Save dialog
    If I change the type of the solution to Farm solution it works as expected.
    IISLOGS:
    2013-12-19 10:12:01 127.0.0.1 PROPFIND / - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 35
    2013-12-19 10:12:01 127.0.0.1 PROPFIND /sites - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 26
    2013-12-19 10:12:01 127.0.0.1 PROPFIND /sites/team1 - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 30
    2013-12-19 10:12:01 127.0.0.1 PROPFIND /sites/team1/Lists - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 32
    2013-12-19 10:12:01 127.0.0.1 POST /_vti_bin/shtml.dll/_vti_rpc - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 200 0 0 10
    2013-12-19 10:12:01 127.0.0.1 HEAD /sites/team1/_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.*&location=Lists/ListDefinitionProject1-ListInstance1 80 - 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 401 0 0 6
    2013-12-19 10:12:01 127.0.0.1 HEAD /sites/team1/_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.*&location=Lists/ListDefinitionProject1-ListInstance1 80 - 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 401 1 2148074254 2
    2013-12-19 10:12:01 127.0.0.1 HEAD /_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.*&location=Lists/ListDefinitionProject1-ListInstance1 80 0#.w|domain\username 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 200 0 0 23
    2013-12-19 10:12:01 127.0.0.1 GET /sites/team1/_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.docx&location=Lists%2FListDefinitionProject1-ListInstance1 80 - 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 401 0 0 10
    2013-12-19 10:12:01 127.0.0.1 GET /sites/team1/_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.docx&location=Lists%2FListDefinitionProject1-ListInstance1 80 - 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 401 1 2148074254
    2
    2013-12-19 10:12:01 127.0.0.1 GET /_vti_bin/owssvr.dll dialogview=FileSave&FileDialogFilterValue=*.docx&location=Lists%2FListDefinitionProject1-ListInstance1 80 0#.w|domain\username 127.0.0.1 non-browser;+(Windows+NT+6.1.7601) 410 0 0 34
    2013-12-19 10:12:01 127.0.0.1 PROPFIND /sites/team1/Lists/ListDefinitionProject1-ListInstance1 - 80 0#.w|domain\username 127.0.0.1 Microsoft-WebDAV-MiniRedir/6.1.7601 207 0 0 36

    Hi,
    According to your post, an error occurred when you used the custom Documents Library(List Definition using sandbox solution).
    Please check whether you have removed <ContentTypeRef/> in the <ContentTypes/> tag of Schema.xml file in your project.
    Here is a sample about list definition deployed as a sandbox solution, you can take a look at:
    http://sharepointbuzzer.com/2010/10/21/list-definition-using-sandbox-in-sharepoint-2010/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Javascript to upload a file to SharePoint 2010 document library

    Please share your ideas. I am using SharePoint 2010. Currently when uploading files to a document library, first the upload form is opening to upload the document and then the edit form. I would like to have both this in the same form. I am trying to
    create a webpart page with the controls to upload the file to document library and assign values to the fields in the library. I am looking for some javascript for doing this. Is there any other way of achieving this? Please share any sample
    code.
    <label for="title">Enter the title for this document:</label> <input type="text" id="title"><br/><br/>
    <input id="inputFile" type="file"/><br/><br/>
    <input id="uploadDocumentButton" onclick="UploadDocument()" type="button" value="Upload Document"/><script type="text/javascript">
            function UploadDocument() {
                //javascript to upload the file to MyLibrary and update the title field
    </script>

    Use the below code step by step :) 
    (1) Html
      <input type="file" id="attafh"  class="AlltextAccount"  />
          <input type="button" value="upload" onclick="rundCode()" />
    (2) JS File 
    function rundCode() {
        var file = document.getElementById('attafh').files[0];
        if (file) {
            UploadMe(file);
    (3) 
    function UploadMe(readFile) {
        var reader = new FileReader();
        reader.readAsArrayBuffer(readFile); //array buffer
        reader.onprogress = updateProgress;
        reader.onload = loaded;
        reader.onerror = errorHandler;
    (4)
    function loaded(evt) {
        var fileString = evt.target.result;
        var X = _arrayBufferToBase64(fileString); // this is the mothod to convert Buffer array to Binary
            var fileInput = document.getElementById('attafh');
            var fileDisplayArea = document.getElementById('fileDisplayArea');
                var file = fileInput.values;
                 var filePath = $('#attafh').val(); // "c:\\test.pdf";
            var file = filePath.match(/\\([^\\]+)$/)[1];
            var soapEnv =
                "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> \
                    <soap:Body>\
                        <CopyIntoItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>\
                            <SourceUrl>" + filePath + "</SourceUrl>\
                                <DestinationUrls>\
                                    <string>http://intranet/sites/English/DocumentLibrary/" + file + "</string>\
                                </DestinationUrls>\
                                <Fields>\
                                    <FieldInformation Type='Text' DisplayName='Title' InternalName='Title' Value='Test'  />\
                                      <FieldInformation Type='Text' DisplayName='BudgetId' InternalName='BudgetId' Value='8'  />\
                                </Fields>\
                            <Stream>" + X + "</Stream>\
                        </CopyIntoItems>\
                    </soap:Body>\
                </soap:Envelope>";
            $.ajax({
                url: "http://intranet/_vti_bin/copy.asmx",
                beforeSend: function (xhr) { xhr.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/sharepoint/soap/CopyIntoItems"); },
                type: "POST",
                dataType: "xml",
                data: soapEnv,
                complete: processResult,
                contentType: "text/xml; charset=\"utf-8\""
        SP.SOD.executeOrDelayUntilScriptLoaded(initialize, 'SP.js');
        SP.SOD.executeOrDelayUntilScriptLoaded(test, 'SP.js');
    function errorHandler(evt) {
        if (evt.target.error.name == "NotReadableError") {
            // The file could not be read.
    function _arrayBufferToBase64(buffer) {
        var binary = ''
        var bytes = new Uint8Array(buffer)
        var len = bytes.byteLength;
        for (var i = 0; i < len; i++) {
            binary += String.fromCharCode(bytes[i])
        return window.btoa(binary);
    (5)
    function updateProgress(evt) {
    http://www.abdulazizfarooqi.wordpress.com Abdul Aziz Farooqi [BizTalk & SharePoint Consultant] MCPD Web & MCPD SharePoint 2010

  • Sharepoint 2010 document library pdf files are storing in browser cache when it is opened in browser

     i have sharepoint 2010 site which consists of document library  with pdf files if we click on pdf file it will open in browser .But the thing is it is storing in browser cache  so i need to restrict that pdf to not store in browser cache.
    A,ny suggestions please

    Hi,
    We can use jQuery plugin to open the PDf file in browser.
    The following link for your reference:
    http://www.jqueryrain.com/2012/09/best-jquery-pdf-viewer-plugin-examples/
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to set water marking in sharepoint 2010 document library

    hi,
    we have one requirement for Water marking. i have one document library in that document documents is there when downloading documents that time we have set water marking to  download document using programmatically

    You can check this link:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/180acc9f-b7f2-467a-84e0-db78b2cdf793/how-to-set-a-water-mark-for-a-new-document-uploading-a-document-in-document-libary?forum=sharepointcustomizationlegacy
    _eNo_,
    Moderator Note: Never propose your own posts as answers. The "Propose as Answer" function is for people to propose the good answers of other people. It is not for self-proposing.

  • How can I automatically enable content approval on a SharePoint 2010 document library

    Hi All,
    I would like to enable
    content approval feature 'Yes' in version setting page by default when the new site is created under SharePoint 2010 farm. How could achieve this. Kindly help.

    Hi, Are you creating publishing site? if yes Turn on Content Approval for SharePoint 2010 Sites By default, Content Approval is turned off in SharePoint 2010 and (usually) any user with Read access can see Draft items in most libraries. Sites created with
    the publishing site template, however, already have Content Approval turned on in the Pages library.
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • In SharePoint 2010 Document Library "Open with Explorer" Your client does not support opening this list with Windows Explorer

    Hi.
    I am getting below error "Your client does not support opening this list with Windows Explorer" while click "Open with Explorer" option in document library.
    My system is client machine which is 32 Bit system and
    Web Client service is also running and Window 7 PC.
    Other SharePoint sites "Open with Explorer" option in document library is working fine but specific site is giving error.
    Even it was working fine but not is giving this error.
    Please help me on it. Its making frustrations.
    Thanks & Regards
    Poomani Sankaran

    Hi,
    According to your post, my understanding is that you got “Your client does not support opening this list with Windows Explorer” error.
    Did you enable the both authentication (Windows and FBA) on default zone.
    As far as I remember when FBA is enabled on the same zone when Windows is used, it breaks whole client integration.
    So it will be better if you will recheck your architecture and will use different zones for Windows and FBA.
    There is also another thing to try: use claims based authentication with authentication provider which will work both with Windows and FBA.
    What’s more, you can also check with below steps.
    Use compatibility mode to check whether it works.
    Open IE->Tools->Compatibility View Settings
    Add the site into Trusted sites to check whether it works..
    Open the IE->Internet Options->Security->Sites->add the site into the Websites, then check whether it works.
    In addition, you can also try to enable Basic authentication on the client computer, by setting the BasicAuthLevel registry entry of the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
    For detailed steps, visit the following KB page.
    http://support.microsoft.com/kb/841215/en-us
    There are some similar threads for your reference.
    http://social.msdn.microsoft.com/Forums/en-US/e9a07773-db23-46e9-8d1d-7015cd5aa13b/your-client-does-not-support-opening-this-list-with-windows-explorer?forum=sharepointgeneralprevious
    http://blogs.technet.com/b/asiasupp/archive/2011/06/13/error-message-quot-your-client-does-not-support-opening-this-list-with-windows-explorer-quot-when-you-try-to-quot-open-with-explorer-quot-on-a-sharepoint-document-library-in-office-365-site.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Microsoft Word Hangs When Opening Document From SharePoint 2010 Document Library

    I am running into an issue where Word hangs when opening certain files from a document library.  When the issue occurs, Word opens and hangs at the Downloading <Doc URL> stage.  I have tried disabling the SharePoint plugins in IE and that
    makes no difference.  I can download a local copy of the file and open in just fine.  The file in questions exists in a separate document library where it can be opened just fine (The file was copied to the library where the issue is occurring by
    a Workflow).  The issue also has only occurred on .docx files and not .doc, however, not all docx files are having the issue.
    Does anyone have any thoughts on what might be causing this?
    Thanks.

    Hi,
    According to your post, my understanding is that when you opened a certain files from a document library, it hanged at the downloading stage.
    I tried to reproduce the issue, after coping by a workflow, the .docx files opened well in my environment.
    Did the issue occur in other documents libraries? You can copy the files to a new documents library by workflow, then check whether it works.
    For more details we also can check the SharePoint ULS logs.
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Have you check your IE settings (Tools->options->connections->LAN settings->uncheck Automatically detect settings).
    Please also use fidder tools to detect the process. You can download it by the following link.
    http://fiddler2.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to Create Custom Timer Job for SharePoint 2010 using Visual Studio 2010?

    While creating timer job Visual Studio showing some kind of error and assembly issues.

    Hi Aryav
    Please provide the errors so that we can resolve your issue.
    Meanwhile go through the step by step process of creation of Timer Job in the articles given below.
    Create and Deploy Custom Timer Job Definition in SharePoint Programatically
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • Workflow to change file permission in SharePoint Online Document Library

    1.What are my options with SPD 2013 If I want to change a documents file permission in a workflow?
    2.Where does SPO host 2013 Workfows?
    3.If connecting to SPO Can I use Worklow Manager 1.0?
    4.Will I need to host my Workflow Manager workflows on server or Azure if running against o365/SPO?
    5.If I wish to create SPO 2013 workflows with Visual Studio 2012, what do I need and will I be limited to actions I see in SPD 2013?
    ============================
    Thank You
    cyberpine.com

    You can host this workflow as a SharePoint App in SharePoint Online or use SharePoint Designer to create this workflow as long as you use the app step. Managing the permissions can be done with a REST call.  The initiator of the workflow must have
    been granted the right to "Manage Permissions" and the app must have full control of the Site Collection.   We have done so for several of our clients.   I know you asked this question some time ago, but I thought the info might still be helpful.

Maybe you are looking for

  • File/folder behaviour when importing in iTunes?

    I've recently purchased an iPhone 3G. I've also got a substantial mp3 collection (121GB), all ordered in a Genre/Artist/Album subfolder structure. Every file has an ID3 tag properly filled out. As you can tell I'm an organized person - at least when

  • How I got SMTP on my iPhone to work

    My solutions may or may not work for you, but here goes: My wife's new iPhone would not send or receive mail from her mobile me account and would not send from an ISP mail account. I managed to fix both problems: 1. Re: mobile me mail. Her account is

  • How do I get Mavericks? I can't seem to find it in the app store

    The question says it all. Do I buy a DVD? My computer will take yosemite, but I don't feel like upgrading all my ilife, yet.

  • WD ABAP ALV cell selection

    Hi ! Is there an equivalent for CL_GUI_ALV_GRID->get_current_cell in web dynpro abap? thanks in advance

  • Multiple TDMS Questions

    I haev a few questions on TDMS. 1. Is it true that TDMS file is a LabVIEW specific binary, and you can't read it without using LabVIEW? 2. I was able to read the TDMS file in excel.  Howcome I can do that?  Is excel supposed to be able to read TDMS?