Yes, it is the PHP code opening the windows dialog box. I use the header function.
header("Content-Length: ".filesize($dest_file));
header("Content-Type: $mimetype");
header("Content-Disposition: attachment; filename=".$FILENAME);
header('Content-Type: application/octet-stream');