-added logging to see what exception could be -incorrectly using temp_file_path instead of original file_path to find extension
-added logging to see what exception could be -incorrectly using temp_file_path instead of original file_path to find extension