Email Attachment from Form Submit

Alright so I feel rather stupid now, especially because I have found the solution to my own problem right after posting my question here, but also because I would have found it much earlier had I properly debugged my page (implemented a way to look at return error codes).

Anyways…

As stated in my EDIT above: my form tests were still being executed despite me overriding them. I still don’t really know why the posted solution is not functional as it is taken straight from the documentation but I have found a “workaround”.

Creating the override array inside my function call actually works like I would expect it to:

$movefile = wp_handle_upload( $uploadedfile, array( 'test_form' => false ) );

Sorry guys. Happy debugging!

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