Is there function similar to wp_upload_bits() that will allow uploading to a specific path?

Is there function similar to wp_upload_bits() that will allow uploading to a specific path?

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