WordPress error "The uploaded file could not be moved to"

WordPress Upload Error

If you're getting the error message "The uploaded file could not be moved to wp-content/uploads/<year>/<date>", it means that WordPress doesn't have permission to write to the upload folder.

Don't set the permissions to 777! This is a security risk. Instead, open a support ticket with Ultra Web Hosting and we'll run the following command on the command line for you:

 

chown -R nobody /home/<username>/public_html/wp-content/uploads


This will change the ownership of the upload folder to nobody, which will give WordPress permission to write to it.


Here's why you shouldn't set the permissions to 777:

  • It gives everyone permission to read, write, and execute files in the folder, including malicious users.
  • It can open your site up to security vulnerabilities.

So, what should you do?

  • Open a support ticket with Ultra Web Hosting and we'll run the command for you.
  • If you're familiar with the command line, you can run it yourself.

Either way, don't set the permissions to 777!

 

  • 2 Users Found This Useful

Was this answer helpful?

Related Articles

WordPress Response Body too Large and Too many arguments in Request Errors

If you are receiving a response body too large error with WordPress it is a result of WordPress...

Quickly Disable All WordPress Plugins via phpMyAdmin

Before beginning, be sure to have a backup of your database. You may backup your database by...

Blocked by JetPack

If you have access to your site and you’ve not been blocked, you can enter your IP or IPv6...

WordPress Error : Sorry, this file type is not permitted for security reasons

.svg and .xap files can result in the error "Sorry, this file type is not permitted for security...

The WordPress app doesn't work with my website

The WordPress app utilizes the xmlrpc.php file on your account put there by WordPress. However, a...