Upload image fails “upload test” on localhost

one must check
— php.ini configuration to increase max_file_size and max_upload_size

MOST IMPORTANT
on nginx.conf one must add

http {
    client_max_body_size 2M; /

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)