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!

 

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

WordPress Site Search

Adding search functionality is a wonderful way to add functionality and pleasure to a visitors...

Quickly Disable All WordPress Plugins via phpMyAdmin

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

Optimize WordPress Performance

With our service, there are many ways to dramatically speed up the performance of your WordPress...

Not Receiving Form Email Through WordPress - SMTP

For anti-spam reasons be sure that the email address you are using to send from, exists in your...

504 error - Are you sure you want to do this?

In wordpress if you receive either of the following errors when trying to upload a theme... 504...