Bulk uploading files to your WordPress media library allows you to upload a large number of files or files with large file sizes without the pains of trying to use the WordPress built-in upload functionality. But while this process can definitely make your life easier in certain situations, it’s not quite as simple as just uploading files via FTP. You’ll need to complete a few added steps if you want those files to actually be available inside your WordPress media library. Below, we’ll take you through the full process from start to finish.
When Is It Helpful to Bulk Upload Files to Your WordPress Media Library?
The regular WordPress media library upload functionality is perfectly fine as long as you’re not trying to upload:
- Files with large file sizes (some WordPress sites have a max upload size as low as 2MB by default)
- Large numbers of individual files (think in the hundreds)
But there may come a time when you need to complete one of the above actions. And in those situations, bulk uploading files to your media library via FTP offers a much better solution than trying to use the built-in media library upload tool.
Why Can’t You Just Upload Files Via FTP And Stop There?
It’s totally possible to bulk upload files via FTP without completing any additional steps. The problem only arises if you want those files to be available inside your WordPress media library.
See, once you upload a file via FTP, it’s live on your server. That is, you could link to it directly and the file would load. But while you can link directly to the file, it won’t appear in your WordPress media library unless you complete a few additional actions to register the uploaded file with WordPress.
So if you want the files you bulk upload to actually appear in your media library, you need to complete the following process:
- Upload the files to your uploads folder via FTP
- Use a free WordPress plugin to register the files you uploaded with your WordPress media library
Below, we’ll take you through all of the steps in detail. You don’t need any specialized knowledge to complete the process – just follow along with the screenshots!
How to Bulk Upload Files to WordPress Media Library
In order to bulk upload your files to the WordPress media library, you’ll need a few tools and pieces of information:
- The FTP account details for your host – we’ll show you how to find these for your Kinsta account. If you’re using a different host, you’ll need to get those details from your own hosting dashboard.
- An FTP program – a piece of software that allows you to upload files to your host. FileZilla is a good free option, but you can pick another FTP program if you’d prefer.
- Add From Server plugin – this free plugin helps you to register your uploaded files to your media library.
Step 1: Connect to Your Website via FTP
To get started, you’ll need to connect to your site via FTP or SFTP (understand the difference between the two here). SFTP is just short for Secure FTP. Kinsta exclusively uses SFTP, but some other hosts operate on FTP still.
Remember – you’ll need an FTP program to do this. We’ll use FileZilla in our screenshots, but you can use a different FTP program if you’d like.
To actually connect, you’ll need your FTP login details (specifically SFTP for Kinsta). If you’re using Kinsta, you can find these details by going to the Sites tab in your Kinsta dashboard. Then, click the Manage button next to the site you’d like to upload files to:
Then, you should see your details under SFTP/SSH. You’ll need all three pieces of information (Username, Password, Port):
Now, you have all the information you need to connect via FTP. If you’re not using Kinsta, you should be able to get this same information from your host.
Armed with your SFTP details, go back to your FTP program and enter them as follows:
- Host – your actual domain name preceded by “sftp://”. For example: sftp://www.yoursite.com. Additionally, some FTP programs allow you to specify the SFTP method in a separate dropdown. You can view a guide for such programs here.
- Username – from your Kinsta dashboard
- Password – from your Kinsta dashboard
- Port – from your Kinsta dashboard
Once you’ve entered the information, click the Quickconnect button and FileZilla (or your FTP program of choice) will handle the rest.
Step 2: Upload As Many Files As You’d Like
At this point, you should be connected to your site via an FTP client. You can confirm this by looking for the Status: Connected to yoursite.com message:
Now, you need to upload your files to the uploads folder in your WordPress site. To do that, expand the folder structure of your Remote Site tab in your FTP program by clicking the + buttons. You can see the file path to follow in the screenshot below:
Now, you can navigate to the files you’d like to upload in the Local Site tab of your FTP program. All you need to do is drag those files from the Local Site side to the Uploads folder in your Remote Site:
Depending on the size of your files, it might take some time for them to upload. But other than waiting for the uploads to complete, you’re now finished with this step.
Step 3: Register Your Newly Uploaded Files to the WordPress Media Library
Once the FTP uploads finish, your files are live on your server. But if you go to your WordPress site’s media library, you’ll notice that the files are nowhere to be seen:
Once the plugin is activated, you can navigate to Media → Add From Server. Then click the uploads folder in the list:
Now, you should see a list of the files you just uploaded via FTP. Assuming you want to import every single file, you can just tick the checkbox to Select All (if not, you can always select individual files). Then, click the Import button at the bottom:
After clicking the button, you should see a success message for each individual file at the top of your screen:
And when you go back to your media library, you should see all of the files you uploaded via FTP:
That’s it! You’re done at this point. That’s all you need to do to bulk upload files to your WordPress media library. (recommended tutorial: 4 Handy WordPress Media Library Hacks)
Here are a few alternatives you could also use to bulk upload and register files within your WordPress media library.
- If you’d like a plugin with a little more complex functionality, you can try the free Media from FTP plugin. The main advantage of this plugin is the ability to schedule the import process to run automatically. Unless you specifically need this functionality, though, it’s generally safer to stick with the manual approach offered by Add From Server whenever possible.
- You can also use the premium WP All Import plugin to import images from your server.
- If you want to do it straight from the command line you can import images using WP-CLI. The
wp media importcommand allows you to create attachments from local files or URLs.
If you enjoyed this tutorial, then you’ll love our support. All Kinsta’s hosting plans include 24/7 support from our veteran WordPress developers and engineers. Chat with the same team that backs our Fortune 500 clients. Check out our plans