How to Fix Image Upload Issue in WordPress (Step by Step)

Free WordPress Tutorials for the Beginners

how to fix image upload issue

Is your WordPress website throwing error while uploading images? It can be overwhelming when you first see this error and do not know what to do?

Many of the WordPress beginners face image upload issues in their blog without doing anything. You can fix this error easily changing the file permission in your web server.

In this guide, you will learn how to fix image upload issue in your WordPress site easily and prevent image upload error in future.

Time needed: 15 minutes.

How to Fix Image Upload Issue in WordPress

  1. Change File Permissions to 755 for Directory Only

    You need to change file permission to 755 for all the folder in your blog.

  2. Change File Permission to 644 for Files Only

    Change file permission to 644 for all the files in your blog.

Causes of Image Upload Error in WordPress

Your WordPress website is hosted in the web server where all the WordPress file and folders are stored. Those file and folders are operated with the file permission that is configured by default.

Typically, WordPress throw image upload error when one of the files and folders in your web server are restricted doing the particular job. In order words these issue cause by incorrect file permissions.

When one of the WordPress files is restricted in your hosting server you will see the following error while uploading image in your website.

Unable to create directory wp-content/uploads/2019/06. Is its parent directory writable by the server?

You will see error messages while uploading images in your WordPress blog.

image-upload-issue.png

Another form of error can be seen while adding uploaded images in your WordPress block editor. You will see disappear image in your post or pages.

How will File Permissions Change Unexpectedly?

There are many reasons that will change the permissions of the files and folder on the hosting server. When hosting provider upgrades your web server, the file permissions changes unexpectedly and this error occurs.

You can fix this simply applying the correct file permissions to the particular files.

How to Fix Image Upload Issue in WordPress?

You need FTP client FileZilla or CoreFTP to change file permissions in your web server. In this guide we have used FileZilla to connect the web server.

Go to root directory e.g. public_html then double click on /wp-content/ folder where you will find uploads folder.

Ftp sections

WordPress stores all the media files as well as images in uploads folder, where you need to change the correct file permissions. Right click on uploads folder and click on File Permissions.

uploads-1

Step-1: Change File Permissions to 755 for Directory Only

Once logged in to your Web server using FileZilla and open file permissions dialog box. You will see numeric value box where you have to set value to 755 for the directory and sub-directories.

Change the value to 755 in numeric value box. Select Recurse into sub directories and choose Apply to directories only radio button then click on OK.

Fix Image Upload Issue in WordPress

Step-2: Change File Permission to 644 for Files Only

Now, you also need to change the file permission to 644 for files only. Right click on uploads folder then click on file permission and type 644 in numeric value box. Select the box Recurse into sub directories then click on the Apply to files only and click on ok button.

Fix Image Upload Issue in WordPress

Once the file permissions changed for the upload folder. You will be able to upload the images in your WordPress site. Go back to WordPress admin area and upload images.

We hope this tutorial on how to fix image upload issue is helpful. You may also like to see the guide on 27 common WordPress errors and how to fix them.

If this guide has fixed the issues then please let us know in the comment below and do not forget to share and follow on facebook and twitter.

Leave a Reply