How to Upload Images to WordPress Media Library Via FTP

WordPress is the greatest software to use for blogging and building websites, but sometimes, things can be hard to manage, especially, with low-quality hosting services. Many companies claim that they host WordPress are scammers, they offer free services just to force people to upgrade their accounts later.

You shouldn’t use any free hosting if you really want to start a blog or any other project. You should use professional services, and you don’t have to pay a fortune for that.

If you’re using any of those poor hosting services, you will get error messages like the one below.

File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.

Upload Images to WordPress Media Library

Of course, this just an example of similar WordPress errors that you get, when uploading images or files from the dashboard. Unfortunately, there is no way to use the default uploading method that WordPress uses. However, I’ll show you how to fix this problem using an alternative way.

What you need is the ”File Manager” that you can find in your cPanel account, or simply, use any FTP client manager like FileZilla.

Because you can’t use the WordPress uploaded in these servers, you should upload them manually using FTP. And then, you can install a free plugin that will import all the uploaded images and files to the WordPress media library.

1. Upload your images using FTP

The cPanel file manager is the easiest way to upload your images to the server. After logging into cPanel, locate the options, and click on it as the below example.


When you get the site directories, choose the one called ”wp-content” and open it.

WordPress content file

Inside, you will find a sub-folder ”Uploads”. You can upload your images to that folder directly, and then import them or create any directory there, like the month and the year just like the professional hosting cases.

Anyway, don’t worry about that, just upload your files to any location in that ”Uploads” directory.


To start the upload, click the option at the top of the page, and you will get a new page, where you just need to select the file from your local computer, and it will be uploaded automatically.

Related:  Unable to Locate WordPress Content Directory (wp-content) Problem Fix


If you don’t have cPanel access and there is no way to use a web file manager, then, you should use FileZilla.

2. Import your images to the WordPress media library

Now, that you have the files uploaded to the server, you need to import them to the WordPress media library. But first, install the plugin called Add From Server, activate it, and then, you can click the ”import files” option under the plugin name.

import files

Finally, you can see the files that you want to import, select them, and click the button to start the process.

import images into WordPess

Now, all these images will be transferred to your WordPress library. From there, you can add them into posts as normal, you don’t have to import them again or doing extra steps. Select the media option in your post editor and use the photo that you want to use, it will be imported from the media file directly, and that will fix the problem.

As you can see, you can solve the WordPress media importing problems easily. But, you will need to upload each image manually every time you have new images. You can also upload many images at once to save time. That’s the situation with poorly optimized servers, and you can’t continue with them forever.

So, search for a good hosting that will speed up your WordPress sites and make them fully optimized and also secure. I recommend WP Engine for serious people, it will speed up the site and in one word, they are the number one hosting for WordPress professional users.

Now, that you’ve solved your problem, share this tutorial, and help the others fix their issues when uploading images to WordPress.

Avatar for Fathi Arfaoui
About Fathi Arfaoui

Fathi Arfaoui is a Physicist, Blogger and the founder of He shares Business, WordPress and Blogging tips to build a better blog and succeed online.

Disclosure: The recommendations on this page are my own based on my tests and analysis. We may earn a small commission from web hosts and other partners if you use my referral link to make a purchase. That’s what helps us to maintain the site and add fresh content, Thanks for your support.

Leave a Comment