Total Posts: 356
You should have 777 permissions not only for media folder, but for all the folders invested in it. It can be done with the console command:
chmod -R o+w media
Also if it is a test site and it is closed with .htaccess authorization, then the images can’t upload because of this authorization.
The owner of the media folder should be www-data
You can change the owner of the folders using this console command:
chown -R www-data:www-data media