Made upload_file.php more modular, very minor change