Articles on: Public Articles

File upload problem in WordPress

In the following example, the site path will be:

/home/user/

And the path for the WordPress program is:

/home/user/public_html/wordpress

  1. Log in via FTP, then create a new folder named:

wptmp

The path of the folder will be:

/home/user/wptmp

Set the folder's permissions to 777.

  1. Navigate to the WordPress folder, which in our case is:

/home/user/public_html/wordpress

Edit the wp-config.php file and add the following line:

define('WP_TEMP_DIR', '/home/user/wptmp');

Then save the file.

  1. Also, ensure the wp-content/uploads folder has permissions set to 777:

/home/user/public_html/wordpress/wp-content/uploads

Updated on: 26/10/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!