Open attachment in sharepoint 2019 stop working.

parwaze sadool 121 Reputation points
2020-12-01T10:14:25.597+00:00

cannot open attachment in list view. While moving the cursor on attachment icon in a list where there is an attachment, the cursor does not change.

Microsoft 365 and Office | SharePoint | For business | Windows
{count} vote

Answer accepted by question author
  1. Echo Du_MSFT 17,341 Reputation points
    2020-12-02T03:25:12.767+00:00

    Hello @parwaze sadool ,

    By default, if you add the “Attachments” column to your list views, you get a column that only shows a paperclip icon (see below) if there are any attachments. Clicking that paperclip also won’t open any attachment or the list item to view them. It’s strictly an image.

    You can refer to the following steps to achieve the "Display attachments name and click name can open the files in List View".

    Step1: Copy and paste this code into a new file in your Site Assets folder as showAttachments.js

    44168-js.png

    Note: If you do not see Site Assets on the Site Contents page, please go to the Site settings to enable “Wiki Page Home Page” feature.

    44066-feature.png

    Step2: Go to the specific List >> click on Edit page
    Step3: On the editing page, add a Content Editor web part

    44254-webpart.png

    Step4: Edit Web Part >> paste the URL to the script you saved earlier in the Content Link box>> expand “Appearance” and set Chrome Type to “None” >> click OK

    44187-edit.png

    Step5: Save the page/stop editing.

    Effect Figure:

    44220-open.png

    Thanks,
    Echo Du

    ===================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. parwaze sadool 121 Reputation points
    2020-12-26T17:28:34.757+00:00

    Hi EchoDu-MSFT.
    Sorry for the late reply.
    Thanks for the detailed response with pictures. It was very very helpful. I have tried it and it's working fine.

    Thank You.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.