'WordPress Error: The uploaded file could not be moved to wp-content/uploads/2022/05

I have tried change all permission to 755. it working on FTP but not in Wordpress. unable to edit, upload or update anyhting

and I have few command in Termminal like: sudo chmod 755 -R /var/www/html sudo chown -R www-data /var/www/html/wp-content

&&

Open the wp-config.php file and add the following code: define( 'UPLOADS', 'wp-content/uploads' ); before below line require_once(ABSPATH . 'wp-settings.php');

But unable to slove. I don't know where i messed up enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source