i can’t upload images in wordpress after updating theme i can upload images on wordpress only when i give access to the whole document root. sudo chown -R www-data /var/www/html with the older theme it works fine. i already had this issue and i fix by
sudo chmod g+w /var/www/html/wp-content sudo chmod -R g+w /var/www/html/wp-content/themes sudo chmod -R g+w /var/www/html/wp-content/plugins sudo chmod -R g+w /var/www/html/wp-content/uploads
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.