Looks like either:
- Magento doesn’t have permission to write to the
default
folder - Magento doesn’t have permission to overwrite the
logo_5.png
file assuming that file exists already (perhaps owned by another user?)
When you upload via FTP are you using your magento user credentials? If you upload as someone else, it’ll break ownerships.
What output does the below give you?
ls -la /var/www/html/pub/media/logo/default/`
Best case scenario
drwxr-sr-x 2 www-data www-data 4096 Aug 21 2018 .
drwxr-sr-x 4 www-data www-data 4096 Oct 16 13:02 ..
-rw-r--r-- 1 www-data www-data 4211 Jul 17 2018 logo_5.png
Potential issue (wrong owner of existing file)
drwxr-sr-x 2 www-data www-data 4096 Aug 21 2018 .
drwxr-sr-x 4 www-data www-data 4096 Oct 16 13:02 ..
-rw-r--r-- 1 bob www-data 4211 Jul 17 2018 logo_5.png