Copying uploaded images not working in wordpress

Since i was also looking for some sort of keeping submitted images, i found this simple plugin, which gave me a bit insight:
https://wordpress.org/plugins/store-file-uploads-for-contact-form-7/

Also if you read a bit on the mentioned “file-uploading-and-attachment” topic in cf7, you should get the point:

For security reasons, specifying files outside of the wp-content
directory for email attachments is not allowed, so place the files in
the wp-content or its subdirectory.

I think if you stay within the wp-content dir, your copy-func may have its content.

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