corrected upload.php to handle an included ca-bundle