Limit WP Uploader to certain file types only in pages

Try,

if ( is_admin() ) return $file;

instead. Basically you should always return the filtered content, otherwise you effectively have filtered the $file to nothing.

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