Uploading files to the WordPress Media Library lets you store documents and other media on your website so you can use them in posts, pages and downloadable resources. You can upload files directly through the WordPress dashboard or from within the editor while creating content.
The method you choose depends on whether you want to upload files for later use or add a file to a specific post or page.
How to Upload Files Through the WordPress Dashboard
The simplest way to upload files independently of a post or page is to use the Media Library’s upload screen.
- Sign in to your WordPress dashboard.
- Go to Media → Add New Media File or select Media → Library and click the Add New button. The exact label may vary slightly between WordPress versions.
- Find the upload area on the page.
- Either drag files from your computer into the upload area or click Select Files to browse for them.
- Select the file or files you want to upload and confirm your selection.
- Wait for the uploads to finish, then open Media → Library to locate the uploaded files.
WordPress supports uploading multiple files in one operation, provided the files meet your site’s restrictions and the upload completes successfully. The official Media Add New Screen documentation explains the standard upload methods.
This approach is useful for preparing documents, audio files, video files and other media before you decide where to use them.
How to Upload Files While Editing a Post or Page
If you are writing a post or page and want to add a file to that specific piece of content, you can upload it from the editor instead.
Upload a file using the block editor
- Open the post or page you want to edit, or create a new one.
- Click the + block inserter to add a block.
- Search for a suitable block, such as File, if you want visitors to download a document.
- Add the block and choose its Upload option.
- Select the file from your computer and wait for WordPress to upload it.
- Configure the block’s available settings, such as the displayed link text or download options, where supported by the block and your WordPress version.
- Save or publish the post or page when you are ready.
The official File block documentation explains how to upload a file directly into a File block or select one that is already in the Media Library.
Important: A file uploaded while editing a post or page is normally associated with that content. A file uploaded through the general Media upload screen starts as unattached. This association does not determine whether the file can be used elsewhere.
Upload a file using the Classic Editor
If your website uses the Classic Editor, open the post or page editor and use the Add Media button above the editing area. Select the upload option, choose your file and complete the upload. You can then insert the file or its link into the content.
The exact controls depend on your editor and installed plugins. If you do not see an upload option, check your user permissions and whether the editor has been customised.
- WordPress-focused hosting plans
- Starter to eCommerce options
- Room to upgrade as you grow
Which File Types Can You Upload to WordPress?
WordPress supports a range of media formats, including documents, audio, video and other commonly used files. The formats accepted by your website depend on WordPress’s allowed file types, the file’s MIME type and any restrictions imposed by your hosting environment or security plugins.
Common examples include:
- PDF documents: useful for downloadable guides, forms, reports and brochures.
- Audio files: suitable for podcasts, recordings and other audio content.
- Video files: useful for media you intend to host directly on your website.
- Text documents and spreadsheets: useful where the file format is supported and appropriate for your site.
Not every file extension is accepted by default. WordPress may reject certain formats for security reasons, and plugins or server configuration can introduce additional restrictions. Do not disable these protections simply to upload an unfamiliar file type.
For further details, consult the official WordPress guide to using media and file attachments.
How to Check Whether a File Uploaded Successfully
After uploading a file, confirm that WordPress has stored it correctly before using it on your website.
- Open Media → Library.
- Search for the file by its name, or check the newest entries.
- Select the file to open its attachment details.
- Check the filename, file type and file size.
- Where available, use the file URL or download option to confirm that the file can be accessed.
If you uploaded the file while editing a post or page, also check that the relevant block or link references the correct file.
An upload appearing in the Media Library does not necessarily mean it has been added to a published page. Uploading stores the file; adding a link, inserting a supported block or otherwise referencing the file makes it available within your content.
How to Fix Common WordPress File Upload Problems
When a file fails to upload, the cause may be the file itself, a WordPress restriction, a server limit or a temporary technical problem.
The file exceeds the maximum upload size
WordPress displays the maximum permitted upload size on the upload screen in many installations. If your file is too large, the upload may fail.
Try the following:
- Check the maximum upload size displayed by WordPress.
- If appropriate, reduce the file size or split a large document into smaller files.
- If the limit is imposed by your hosting environment, ask your hosting provider how it can be adjusted.
- If you manage the server yourself, review the relevant PHP and web-server upload limits.
Increasing a PHP limit alone may not solve the problem if another server or proxy limit is lower. Make changes carefully, especially on a managed hosting plan where configuration is controlled by the provider.
WordPress says the file type is not permitted
Check that the file uses a supported format and has the correct extension. Renaming a file does not convert it into another format and will not reliably resolve a file-type restriction.
If you need to upload a legitimate file type that WordPress does not permit by default, check the security implications before changing the allowed file types. Only allow formats you understand and have a genuine reason to use.
The upload fails or gets stuck
If an upload does not complete:
- Retry the upload with a smaller file, if practical.
- Try selecting the file through the browser’s file picker instead of dragging and dropping it.
- Refresh the dashboard and check whether the file was uploaded despite the error.
- Try another browser or a private browsing window to rule out a browser extension or cached session issue.
- If the problem persists, check for server errors, security-plugin restrictions, storage limits or incorrect file permissions.
WordPress’s Media Add New documentation describes the alternative browser uploader. If both upload methods fail, the issue may be outside the uploader itself.
The file uploads but cannot be opened
Copy the file’s URL from its attachment details and try opening it in a new browser tab. If it returns an error, check whether the file exists, whether its URL is correct and whether server permissions or security rules are preventing access.
If the file opens but its contents appear corrupted, verify the original file on your computer and upload it again if necessary.
You cannot see the Media menu
Your WordPress user account may not have permission to upload files. Ask a site administrator to check your role and capabilities. On a multisite installation, network-level restrictions may also apply.
Do not change user permissions more broadly than necessary to solve the problem.
Best Practices for Uploading Files
A few simple practices make the Media Library easier to manage and reduce avoidable problems.
- Use clear filenames. Names such as
annual-report-2026.pdfare easier to recognise than generic names such asdocument-final-2.pdf. - Upload only what you need. Large or unnecessary files consume storage and can make your site harder to maintain.
- Check file permissions and privacy. A file stored in the Media Library may be accessible to anyone who has its URL. Do not treat an ordinary media upload as a secure document-sharing system for confidential files.
- Avoid uploading sensitive information unnecessarily. If a document contains private or restricted data, use a suitable access-controlled storage solution rather than assuming an unlisted URL protects it.
- Keep copies of important originals. The Media Library is not a substitute for a separate backup of your website and its files.
- Use the right delivery method for large files. Hosting substantial video files directly on your WordPress server may consume significant storage and bandwidth. An external video-hosting or file-delivery service may be more suitable, depending on your requirements.
You can also use the Media Library’s search and filtering options to find previously uploaded files rather than uploading duplicates. See the official Media Library documentation for details.
Frequently Asked Questions
Can I upload multiple files to WordPress at once?
Yes. The Media upload screen supports selecting or dragging multiple files into the upload area. Each file must still comply with your website’s file-type and size restrictions.
Do I need to publish a post before uploading a file?
No. You can upload files directly through Media → Add New Media File without creating or publishing a post or page.
Where are uploaded files stored?
In a standard WordPress installation, uploaded files are normally stored in the wp-content/uploads directory. Depending on your settings, files may be organised into year- and month-based subdirectories. Hosting configurations and plugins can change the storage arrangement.
The WordPress Media Settings documentation explains the standard upload-directory settings.
Can I upload a PDF to WordPress?
Yes. PDFs can normally be uploaded through the Media Library. You can then link to the document from a post, page or File block, provided the file is accepted by your website.
Does uploading a file automatically display it on my website?
No. Uploading adds the file to the Media Library. To make it available through your content, you generally need to add a link, use a suitable block or otherwise reference the file.
Can visitors access files in the Media Library?
Visitors may be able to access uploaded files directly through their URLs, depending on your website’s configuration. The Media Library does not, by itself, provide confidential file storage or enforce private access to every uploaded file.
Summary
To upload files to WordPress, use Media → Add New Media File to add them for later use, or upload them directly from the editor when working on a specific post or page. Check the file type and maximum upload size if an upload fails, then confirm that the file appears in the Media Library and can be accessed correctly.
- WordPress-focused hosting plans
- Starter to eCommerce options
- Room to upgrade as you grow