In the following example, the site path will be:
/home/user/
And the path for the WordPress program is:
/home/user/public_html/wordpress
wptmp
The path of the folder will be:
/home/user/wptmp
Set the folder's permissions to 777.
/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.
wp-content/uploads
folder has permissions set to 777:/home/user/public_html/wordpress/wp-content/uploads