Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

When you add a modern page to a site, you add and customize web parts, which are the building blocks of your page. This article describes the File and Media web part, which was previously called the Document web part.

Use the File viewer web part to insert a file on your page. File types you can insert include Excel, Word, PowerPoint, Visio, PDFs, 3D models, videos, and more.

Note: In SharePoint 2019, file types that can be inserted are limited to Word, Excel, and PowerPoint (specifically .doc, .docx,. xls, .xlsx, .pot, .potx, .ppt and .pptx).

3D file in File viewer

Add a file

  1. If you're not in edit mode already, select Edit at the top right of the page.

  2. Hover your mouse above or below an existing web part or under the title region, click Circled plus sign used to add a modern web part to a page, and then select the File viewer web part.

  3. Choose a recent file or get a file from your site, your computer, or a link. If your organization has specified a set of approved images, you'll be able to choose from that set under Your organization


    • Web search uses Bing images that utilize the Creative Common license. You are responsible for reviewing licensing for an image before you insert it on your page.

    • If you're a SharePoint Admin and want to learn how to create an asset library for Your organization, see Create an organization assets library.

  4. Choose a recent file, or browse, upload, or use a link to insert the file you want.

    Note: Files uploaded from Computer will be stored in SiteAssets library in a folder named after page name under SitePages folder.

  5. Optionally, you can add a description under the web part.

  6. To set additional options (depending on availability for the file type), select Edit web part Web part edit button.


Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!