I have a form on example.com/contact-us.php that looks like this (simplified):
example.com/contact-us.php
This code help me in Attachment sending....
$mail->AddAttachment($_FILES['file']['tmp_name'], $_FILES['file']['name']);
Replace your AddAttachment(...) Code with above code