WP fails to upload files to media library, /wp-admin/async-upload.php 403 forbidden

Problem solved.
I really don’t know how, but a simple javascript, that was executed in frontend only, was affecting the image loader.

I removed it.. all works fine (I hope!)

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