{"id":81094,"date":"2023-03-17T16:37:36","date_gmt":"2023-03-17T16:37:36","guid":{"rendered":"\/tutorials\/?p=81094"},"modified":"2025-12-22T14:00:22","modified_gmt":"2025-12-22T14:00:22","slug":"how-to-upload-document-to-website","status":"publish","type":"post","link":"\/tutorials\/how-to-upload-document-to-website\/","title":{"rendered":"How to Upload a Document to a Website Using File Manager and WordPress"},"content":{"rendered":"<p>Learning how to upload a document to a website is important, especially when you want to offer exclusive content and downloadable files.<\/p><p>In this article, we will explain how to upload documents to a web page using Hostinger&rsquo;s File Manager or WordPress.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all-in-one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-upload-a-document-using-hostinger-file-manager\">How to Upload a Document Using Hostinger File Manager<\/h2><p>When building your site, you may need to upload files to share with your audience, such as exclusive eBooks, forms, and cheat sheets.<\/p><p>If the files are smaller than 100 GB, you can add them to the site using the file manager in hPanel. This feature accepts several file types, including Microsoft Word documents, Microsoft Excel sheets, and JPEG images. Additionally, it supports compressed archives, such as .zip, .tar, and .tar.gz.<\/p><p>Here&rsquo;s how to upload files using it:<\/p><ol class=\"wp-block-list\">\n<li>Log in to your <strong>hPanel<\/strong>. Go to <strong>Websites<\/strong> and click <strong>Manage<\/strong>.<\/li>\n\n\n\n<li>On the hosting dashboard, select <strong>File manager<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-hPanel_s-hosting-dashboard-highlighting-the-File-manager-option.png\"><img decoding=\"async\" width=\"1128\" height=\"613\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-hPanel_s-hosting-dashboard-highlighting-the-File-manager-option.png\/w=1024,h=1024,fit=scale-down\" alt=\"The hPanel's hosting dashboard, highlighting the File manager option\" class=\"wp-image-81098\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-hPanel_s-hosting-dashboard-highlighting-the-File-manager-option.png\/w=1128,fit=scale-down 1128w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-hPanel_s-hosting-dashboard-highlighting-the-File-manager-option.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-hPanel_s-hosting-dashboard-highlighting-the-File-manager-option.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-hPanel_s-hosting-dashboard-highlighting-the-File-manager-option.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-hPanel_s-hosting-dashboard-highlighting-the-File-manager-option.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1128px) 100vw, 1128px\" \/><\/a><\/figure>\n<\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Go to the directory where you want to store the file &ndash; in this example, we&rsquo;ll use <strong>public_html<\/strong>. Click the <strong>Upload<\/strong> button in the upper-right corner.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/hPanel_s-File-Manager-with-the-Upload-icon-highlighted.png\"><img decoding=\"async\" width=\"1024\" height=\"109\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hPanel_s-File-Manager-with-the-Upload-icon-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"hPanel's File manager with the Upload icon highlighted\n\" class=\"wp-image-81099\" style=\"width:840px;height:89px\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hPanel_s-File-Manager-with-the-Upload-icon-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hPanel_s-File-Manager-with-the-Upload-icon-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hPanel_s-File-Manager-with-the-Upload-icon-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hPanel_s-File-Manager-with-the-Upload-icon-highlighted.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>On the <strong>Upload<\/strong> pop-up window, click <strong>File<\/strong>.<\/li>\n\n\n\n<li>Choose a document and select <strong>Open<\/strong>. For this example, we&rsquo;ll upload Microsoft Word documents.<\/li>\n\n\n\n<li>That&rsquo;s it. The Microsoft Word files<strong> <\/strong>you uploaded will be listed in the <strong>public_html<\/strong> directory.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-public_html-directory-on-hPanel-with-Example-doc-and-Example-file-highlighted.png\"><img decoding=\"async\" width=\"1477\" height=\"608\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-public_html-directory-on-hPanel-with-Example-doc-and-Example-file-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"The public_html directory on hPanel with Example doc and Example file highlighted\n\" class=\"wp-image-81100\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-public_html-directory-on-hPanel-with-Example-doc-and-Example-file-highlighted.png\/w=1477,fit=scale-down 1477w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-public_html-directory-on-hPanel-with-Example-doc-and-Example-file-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-public_html-directory-on-hPanel-with-Example-doc-and-Example-file-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-public_html-directory-on-hPanel-with-Example-doc-and-Example-file-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-public_html-directory-on-hPanel-with-Example-doc-and-Example-file-highlighted.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1477px) 100vw, 1477px\" \/><\/a><\/figure>\n<\/div><h2 class=\"wp-block-heading\" id=\"h-how-to-upload-a-document-in-wordpress\">How to Upload a Document in WordPress<\/h2><p>While WordPress <a href=\"https:\/\/codex.wordpress.org\/Uploading_Files\" target=\"_blank\" rel=\"noopener\">accepts several file types<\/a>, the preferred file format is PDF. That&rsquo;s because users can view the content without having to download the document.<\/p><p>There are two different methods to add files in WordPress &ndash; by editing a page or post or transferring it directly to the Media Library. Depending on your WordPress hosting provider, the maximum file size ranges from 5 MB to 500 MB.<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-uploading-a-document-to-a-wordpress-page-or-post\">Uploading a Document to a WordPress Page or Post<\/h3><p>Follow these instructions to upload a PDF file from your computer to a WordPress page or post:<\/p><ol class=\"wp-block-list\">\n<li>On your WordPress dashboard, create a new page or post. Alternatively, open an existing one.<\/li>\n\n\n\n<li>Click the <strong>Block Inserter + <\/strong>icon to open the menu.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-WordPress-Gutenberg-top-bar-with-the-Block-Inserter-icon-highlighted.png\"><img decoding=\"async\" width=\"1231\" height=\"377\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-WordPress-Gutenberg-top-bar-with-the-Block-Inserter-icon-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"The WordPress Gutenberg top bar with the Block Inserter icon highlighted\" class=\"wp-image-81101\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-WordPress-Gutenberg-top-bar-with-the-Block-Inserter-icon-highlighted.png\/w=1231,fit=scale-down 1231w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-WordPress-Gutenberg-top-bar-with-the-Block-Inserter-icon-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-WordPress-Gutenberg-top-bar-with-the-Block-Inserter-icon-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-WordPress-Gutenberg-top-bar-with-the-Block-Inserter-icon-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-WordPress-Gutenberg-top-bar-with-the-Block-Inserter-icon-highlighted.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1231px) 100vw, 1231px\" \/><\/a><\/figure>\n<\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Under the <strong>Media<\/strong> section, choose <strong>File<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-section-in-WordPress-Gutenberg-highlighting-the-File-block.png\"><img decoding=\"async\" width=\"311\" height=\"304\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-section-in-WordPress-Gutenberg-highlighting-the-File-block.png\/public\" alt=\"The Media section in WordPress Gutenberg, highlighting the File block\n\" class=\"wp-image-81102\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-section-in-WordPress-Gutenberg-highlighting-the-File-block.png\/w=311,fit=scale-down 311w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-section-in-WordPress-Gutenberg-highlighting-the-File-block.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-section-in-WordPress-Gutenberg-highlighting-the-File-block.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 311px) 100vw, 311px\" \/><\/a><\/figure>\n<\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Click the <strong>Upload<\/strong> button, choose the desired document, and click <strong>Open<\/strong>. In this example, we&rsquo;re adding a <strong>PDF file<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-with-the-Upload-button-highlighted.png\"><img decoding=\"async\" width=\"746\" height=\"200\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-with-the-Upload-button-highlighted.png\/public\" alt=\"The File block on WordPress Gutenberg with the Upload button highlighted\n\" class=\"wp-image-81103\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-with-the-Upload-button-highlighted.png\/w=746,fit=scale-down 746w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-with-the-Upload-button-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-with-the-Upload-button-highlighted.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 746px) 100vw, 746px\" \/><\/a><\/figure>\n<\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>A preview of the uploaded document will appear.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-uploaded-.PDF-file-on-WordPress-Gutenberg.png\"><img decoding=\"async\" width=\"762\" height=\"662\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-uploaded-.PDF-file-on-WordPress-Gutenberg.png\/public\" alt=\"The .PDF file on WordPress Gutenberg\n\" class=\"wp-image-81104\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-uploaded-.PDF-file-on-WordPress-Gutenberg.png\/w=762,fit=scale-down 762w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-uploaded-.PDF-file-on-WordPress-Gutenberg.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-uploaded-.PDF-file-on-WordPress-Gutenberg.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 762px) 100vw, 762px\" \/><\/a><\/figure>\n<\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>To change the file&rsquo;s anchor text, click the hyperlink next to the download button.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-uploading-a-document-to-the-wordpress-media-library\">Uploading a Document to the WordPress Media Library<\/h3><p>Here are the steps to add documents to your <a href=\"\/tutorials\/wordpress-media-library-tutorial\/\">WordPress Media Library<\/a>:<\/p><ol class=\"wp-block-list\">\n<li>Open the <strong>WordPress Dashboard<\/strong>, go to <strong>Media<\/strong>, and click <strong>Add New<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-menu-on-WordPress-Dashboard-with-the-Add-New-option-highlighted.png\"><img decoding=\"async\" width=\"325\" height=\"340\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-menu-on-WordPress-Dashboard-with-the-Add-New-option-highlighted.png\/public\" alt=\"The Media menu on WordPress Dashboard with the Add New option highlighted\n\" class=\"wp-image-81105\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-menu-on-WordPress-Dashboard-with-the-Add-New-option-highlighted.png\/w=325,fit=scale-down 325w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-menu-on-WordPress-Dashboard-with-the-Add-New-option-highlighted.png\/w=287,fit=scale-down 287w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-menu-on-WordPress-Dashboard-with-the-Add-New-option-highlighted.png\/w=143,fit=scale-down 143w\" sizes=\"(max-width: 325px) 100vw, 325px\" \/><\/a><\/figure>\n<\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Choose <strong>Select Files<\/strong>, select the documents to add, and click <strong>Open<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Upload-New-Media-page-on-the-WordPress-Dashboard-with-the-Select-Files-option-highlighted.png\"><img decoding=\"async\" width=\"328\" height=\"168\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Upload-New-Media-page-on-the-WordPress-Dashboard-with-the-Select-Files-option-highlighted.png\/public\" alt=\"The Upload New Media page on WordPress Dashboard with the Select Files option highlighted\n\" class=\"wp-image-81106\" style=\"width:328px;height:168px\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Upload-New-Media-page-on-the-WordPress-Dashboard-with-the-Select-Files-option-highlighted.png\/w=328,fit=scale-down 328w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Upload-New-Media-page-on-the-WordPress-Dashboard-with-the-Select-Files-option-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Upload-New-Media-page-on-the-WordPress-Dashboard-with-the-Select-Files-option-highlighted.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 328px) 100vw, 328px\" \/><\/a><\/figure>\n<\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Go back to the WordPress Dashboard, and create a new post or page. Or open an existing one.<\/li>\n\n\n\n<li>Click the <strong>Block Inserter +<\/strong> icon.<\/li>\n\n\n\n<li>Under <strong>Media,<\/strong> click the <strong>File<\/strong> &rarr; <strong>Media Library<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-highlighting-the-Media-Library-option.png\"><img decoding=\"async\" width=\"747\" height=\"200\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-highlighting-the-Media-Library-option.png\/public\" alt=\"The File block on WordPress Gutenberg, highlighting the Media Library option\n\" class=\"wp-image-81107\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-highlighting-the-Media-Library-option.png\/w=747,fit=scale-down 747w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-highlighting-the-Media-Library-option.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-File-block-on-WordPress-Gutenberg-highlighting-the-Media-Library-option.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/a><\/figure>\n<\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Select the documents to insert and click <strong>Open<\/strong>. For this example, we&rsquo;re uploading a PDF document to a WordPress post.<\/li>\n\n\n\n<li>On the <strong>Attachment Details<\/strong> section, fill in the <strong>Title<\/strong>, <strong>Caption<\/strong>, and <strong>Description<\/strong> and click <strong>Select<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-Details-on-WordPress-Gutenberg-highlighting-the-Select-button.png\"><img decoding=\"async\" width=\"266\" height=\"532\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-Details-on-WordPress-Gutenberg-highlighting-the-Select-button.png\/public\" alt=\"The Attachment Details on WordPress Gutenberg, highlighting the Select button\n\" class=\"wp-image-81108\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-Details-on-WordPress-Gutenberg-highlighting-the-Select-button.png\/w=266,fit=scale-down 266w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-Details-on-WordPress-Gutenberg-highlighting-the-Select-button.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-Details-on-WordPress-Gutenberg-highlighting-the-Select-button.png\/w=75,fit=scale-down 75w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/a><\/figure>\n<\/div><ol start=\"8\" class=\"wp-block-list\">\n<li>The hyperlinks containing the uploaded files will appear. Click them to modify the anchor text.<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>There are two common ways to upload documents to a post or page &ndash; using Hostinger&rsquo;s File Manager or WordPress options.<\/p><p>With the first method, you can upload files directly from your web hosting account. The second requires you to open the WordPress dashboard and use the File block or the Media Library.<\/p><p>We hope this article has helped you learn all about uploading documents to a website. If you have any questions or suggestions, leave them in the comments section below.<\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Suggested Reading                <\/p>\n            <\/div>\n            <p class=\"protip__content\"><a href=\"\/tutorials\/how-to-make-a-website\/\">How to Make a Website<\/a><br>\n<a href=\"\/tutorials\/website\/how-to-upload-your-website\/\">How to Upload Your Website<\/a><br>\n<a href=\"\/tutorials\/how-to-make-a-small-business-website\/\">How to Make a Small Business Website<\/a><br>\n<a href=\"\/tutorials\/build-website-with-chatgpt\/\">How to Build a Website With ChatGPT<\/a><\/p>\n                    <\/div>\n        \n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learning how to upload a document to a website is important, especially when you want to offer exclusive content and [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/how-to-upload-document-to-website\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":298,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Upload a Document to a Website: 2 Easy Ways","rank_math_description":"You can upload a document to a site using File Manager and WordPress. Check out this article to learn how to upload a document to your website.","rank_math_focus_keyword":"how to upload a document to a website","footnotes":""},"categories":[22607,22601],"tags":[],"class_list":["post-81094","post","type-post","status-publish","format-standard","hentry","category-parts-of-a-website","category-website"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-upload-document-to-website","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/como-enviar-arquivo-para-site","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-upload-document-to-website","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-upload-document-to-website","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-upload-document-to-website","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/como-enviar-arquivo-para-site","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-upload-document-to-website","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-upload-document-to-website","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-upload-document-to-website","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-upload-document-to-website","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/81094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/298"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=81094"}],"version-history":[{"count":11,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/81094\/revisions"}],"predecessor-version":[{"id":138207,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/81094\/revisions\/138207"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=81094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=81094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=81094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}