Plugin programming: Uploading a file to a specific folder

I solved it by using basically the same code, but seperate the upload code to an individual php-file.

It’s not as beautiful as it could be but it works.

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