Upload button in web interface is not working

Issue has been solved.

The part
location ~ .(?:png|html|ttf|ico|jpg|jpeg)$ {
try_files $uri /index.php$uri$is_args$args;
# Optional: Don’t log access to other assets
access_log off;
}
was missing in the nginx config file.