How to fix WordPress Media error “The uploaded file could not be moved to wp-content”

Symptoms:

After moving a WordPress website from one server to another or any security changes in server level may trigger the error. While uploading a file using WordPress Media the upload process failed and the error is “The uploaded file could not be moved to wp-content/..
 WordPress Media error

Possible Cause:

wp-content/uploads directory has become immutable.

Fix:

To fix the issue you have to make the uploads directory mutable. When a directory is marked as immutable then its content can not be changed even by the administrator. So first step is to check make the directory mutable recursively and check whether the upload problem is fixed or not.

How to make the directory mutable?

First connect to your VPS using putty. Check here: How to Connect to a Linux Server from Windows: A Comprehensive Guide for FireVPS Users
Run this command

Code
sudo chattr -R -i /home/my-domain/public_html/wp-content/uploads

Please change the path according to your upload directory path.

Now check the WordPress Media upload function. It should work fine now.

If you are still having any issues or confusion, please feel free to knock us on Live Chat from our website. Our support team is always ready to help you.
FireVPS / Live Chat / Skype / support@firevps.net

High-Performance VPS Hosting

Need WordPress Consulting Services?

Need Domain Name?

85% Promo on Domain Names

Dedicated RDP

Poland RDP 50% recurring discount!

Recent Post

Top Ten VPS Providers: Why FireVPS Ranks Among the Best

In today’s digital age, having a reliable web hosting service is crucial for businesses and individuals alike. Virtual Private Servers (VPS) offer an excellent balance between the affordability of shared hosting and the performance of dedicated servers. This article...