The problem is that you want to pass the file directly:
$mail->AddAttachment($_FILES['file1']['tmp_name'], $_FILES['file1']['name']);
However you will have to save the file and then link it:
$mail->AddAttachment("path/to/file");
edti: At least this is the problem I had before, temp location was not an option.