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
- 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.
- 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.
- Also, ensure the
wp-content/uploadsfolder has permissions set to 777:
/home/user/public_html/wordpress/wp-content/uploads
Updated on: 26/10/2025
Thank you!